Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make my vehicle weld properly?

Asked by 9 years ago

This is my script:

01local prev 
02--weld seat
03if(script.Parent.Parent:FindFirstChild("VehicleSeat"))then
04local weld = Instance.new("Weld")
05            weld.Name = "dd"
06            weld.Part0 = script.Parent.Handle
07            weld.Part1 = script.Parent.Parent.VehicleSeat
08            weld.C0 = script.Parent.Handle.CFrame:inverse()
09            weld.C1 = script.Parent.Parent.VehicleSeat.CFrame:inverse()
10            weld.Parent = script.Parent.Handle
11            script.Parent.Parent.VehicleSeat.Anchored = false
12    end
13--weld models
14for i,v in pairs (script.Parent:GetChildren())do
15    if(v:IsA("Model"))then
View all 85 lines...

But it welds weird and looks like it has been in a car accident. I don't think it is the script because the model welds fine in a map that is just about empty. But when it is in a map that has a lot of terrain, and takes awhile to load, then it welds weird. How can I make it load properly?

Answer this question