-- Decompiled with the Synapse X Luau decompiler.


function MakeWeld(p1, p2, p3, p4)
	if p3 == nil then
		p3 = "Weld";
	end;
	local v1 = Instance.new(p3);
	v1.Part0 = p1;
	v1.Part1 = p2;
	v1.C0 = p1.CFrame:inverse() * p1.CFrame;
	v1.C1 = p2.CFrame:inverse() * p1.CFrame;
	v1.Parent = p1;
	if p3 == "Motor" then
		if p4 ~= nil then
			v1.MaxVelocity = p4;
		end;
	end;
	return v1;
end;
function ModelWeld(p5, p6)
	if p5:IsA("BasePart") then
		MakeWeld(p6, p5, "Weld");
		return;
	end;
	if p5:IsA("Model") then
		local v2, v3, v4 = pairs(p5:GetChildren());
		while true do
			local v5, v6 = v2(v3, v4);
			if v5 then

			else
				break;
			end;
			v4 = v5;
			ModelWeld(v6, p6);		
		end;
	end;
end;
car = script.Parent.Parent.Parent;
misc = car:WaitForChild("Misc");
car.DriveSeat.ChildAdded:connect(function(p7)
	if p7.Name == "SeatWeld" and p7:IsA("Weld") and game.Players:GetPlayerFromCharacter(p7.Part1.Parent) ~= nil then
		p7.C0 = CFrame.new(-1, -0.5, 0) * CFrame.fromEulerAnglesXYZ(-(math.pi / 2), 0, 0);
	end;
end);
return {};
