function MakeWeld(Y,w,s,M)if s==nil then s="\087\101\108\100"end local x=Instance.new(s)x.Part0=Y x.Part1=w x.C0=Y.CFrame:inverse()*Y.CFrame x.C1=w.CFrame:inverse()*Y.CFrame x.Parent=Y if s=="\077\111\116\111\114"then if M~=nil then x.MaxVelocity=M end end return x end function ModelWeld(Y,w)if Y:IsA("\066\097\115\101\080\097\114\116")then MakeWeld(w,Y,"\087\101\108\100")return end if Y:IsA("\077\111\100\101\108")then local s,M,x=pairs(Y:GetChildren())while true do local Y,k=s(M,x)if Y then else break end x=Y ModelWeld(k,w)end end end car=script.Parent.Parent.Parent misc=car:WaitForChild("\077\105\115\099")car.DriveSeat.ChildAdded:connect(function(Y)if Y.Name=="\083\101\097\116\087\101\108\100"and(Y:IsA("\087\101\108\100")and game.Players:GetPlayerFromCharacter(Y.Part1.Parent)~=nil)then Y.C0=CFrame.new(-1,-0.5,0)*CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0)end end)return{}
-- 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 {}
