local h={}function MakeWeld(h,k,V,O)if V==nil then V="\087\101\108\100"end local z=Instance.new(V)z.Part0=h z.Part1=k z.C0=h.CFrame:inverse()*h.CFrame z.C1=k.CFrame:inverse()*h.CFrame z.Parent=h if V=="\077\111\116\111\114"and O~=nil then z.MaxVelocity=O end return z end function ModelWeld(h,k)if h:IsA("\066\097\115\101\080\097\114\116")then MakeWeld(k,h,"\087\101\108\100")elseif h:IsA("\077\111\100\101\108")then for h,V in pairs(h:GetDescendants())do ModelWeld(V,k)end end end car=script.Parent.Parent.Parent misc=car:WaitForChild("\077\105\115\099")car.DriveSeat.ChildAdded:connect(function(h)if h.Name=="\083\101\097\116\087\101\108\100"and(h:IsA("\087\101\108\100")and game.Players:GetPlayerFromCharacter(h.Part1.Parent)~=nil)then h.C0=CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0)end end)return h
-- Decompiled with Visenya | https://targaryentech.com
local MiscWeld = {}
function MakeWeld(x, y, type, s)
	if type == nil then
		type = "Weld"
	end
	local W = Instance.new(type)
	W.Part0 = x
	W.Part1 = y
	W.C0 = x.CFrame:inverse() * x.CFrame
	W.C1 = y.CFrame:inverse() * x.CFrame
	W.Parent = x
	if type == "Motor" and s ~= nil then
		W.MaxVelocity = s
	end
	return W
end
function ModelWeld(a, b)
	if a:IsA("BasePart") then
		MakeWeld(b, a, "Weld")
	elseif a:IsA("Model") then
		for i, v in pairs(a:GetDescendants()) do
			ModelWeld(v, b)
		end
	end
end
car = script.Parent.Parent.Parent
misc = car:WaitForChild("Misc")
car.DriveSeat.ChildAdded:connect(function(child)
	if
		child.Name == "SeatWeld"
		and child:IsA("Weld")
		and game.Players:GetPlayerFromCharacter(child.Part1.Parent) ~= nil
	then
		child.C0 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(-(math.pi / 2), 0, 0)
	end
end)
return MiscWeld
