i made a weld script, that welds the body to the chassis. When im not playing the game (not playing) it looks fine. But if i play the game, some parts are at the wrong place. Whats wrong with it?
not running:
https://cdn.discordapp.com/attachments/438417429564227585/503561157240553502/ unknown.png (remove all the spaces)
when running:
https://cdn.discordapp.com/attachments/438417429564227585/503561565983735823/ unknown.png (remove all the spaces)
script:
local parts = script.Parent:GetChildren()
for i = 1, #parts do
if parts[i]:IsA("BasePart") then
local w = Instance.new("Weld")
w.Part0 = script.Parent.Parent.VehicleSeat
w.Part1 = parts[i]
w.C0 = script.Parent.Parent.VehicleSeat.CFrame:Inverse()
w.C1 = parts[i].CFrame:inverse()
w.Parent = script.Parent.Parent.VehicleSeat
end
end
thank you!

2 comments
what chassis do you use? did you make it yourself or it is ss6, or a-chassis
i made it