function MakeWeld(o,m,T,g)if T==nil then T="\087\101\108\100"end local z=Instance.new(T)z.Part0=o z.Part1=m z.C0=o.CFrame:inverse()*o.CFrame z.C1=m.CFrame:inverse()*o.CFrame z.Parent=o if T=="\077\111\116\111\114"then if g~=nil then z.MaxVelocity=g end end return z end function ModelWeld(o,m)if o:IsA("\066\097\115\101\080\097\114\116")then MakeWeld(m,o,"\087\101\108\100")return end if o:IsA("\077\111\100\101\108")then local T,g,z=pairs(o:GetChildren())while true do local o,H=T(g,z)if o then else break end z=o ModelWeld(H,m)end end end car=script.Parent.Parent.Parent misc=car:WaitForChild("\077\105\115\099")car.DriveSeat.ChildAdded:connect(function(o)if o.Name=="\083\101\097\116\087\101\108\100"and(o:IsA("\087\101\108\100")and game.Players:GetPlayerFromCharacter(o.Part1.Parent)~=nil)then o.C0=CFrame.new(-1,-0.5,0)*CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0)end end)return{}


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 {};
