local g={}function MakeWeld(g,r,J,Q)if J==nil then J="\087\101\108\100"end local O=Instance.new(J)O.Part0=g O.Part1=r O.C0=g.CFrame:inverse()*g.CFrame O.C1=r.CFrame:inverse()*g.CFrame O.Parent=g if J=="\077\111\116\111\114"and Q~=nil then O.MaxVelocity=Q end return O end function ModelWeld(g,r)if g:IsA("\066\097\115\101\080\097\114\116")then MakeWeld(r,g,"\087\101\108\100")elseif g:IsA("\077\111\100\101\108")then for g,J in pairs(g:GetDescendants())do ModelWeld(J,r)end end end car=script.Parent.Parent.Parent misc=car:WaitForChild("\077\105\115\099")car.DriveSeat.ChildAdded:connect(function(g)if g.Name=="\083\101\097\116\087\101\108\100"and(g:IsA("\087\101\108\100")and game.Players:GetPlayerFromCharacter(g.Part1.Parent)~=nil)then g.C0=CFrame.new(0,-0.5,0)*CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0)end end)return g

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
