|
| 25 Jun 2017 10:56 PM |
Currently, I am trying to clone a van from the replicated storage to the workspace, but keep finding the bricks falling apart. (The car is made upon studs and inlets) When ever I weld the whole thing, I find the wheels coming apart from the van. Any suggestion on how to prevent this?
|
|
|
| Report Abuse |
|
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 26 Jun 2017 12:24 AM |
here's a welding script i made a while back. instead of doing the studs and inlet thing, you should use a welding script to weld a whole model together.
local base = script.Parent.basepart--this needs to be the foundation of the model, or whichever part all the other parts are centered around local p = script.Parent:GetChildren() for i = 1, #p do if p[i]:IsA("BasePart") then local w = Instance.new("Weld", p[i]) w.Part0 = p[i] w.Part1 = base w.C0 = CFrame.new() w.C1 = base.CFrame:inverse() * p[i].CFrame p[i].Anchored = false end end
|
|
|
| Report Abuse |
|
|
qqtt991
|
  |
| Joined: 14 Dec 2007 |
| Total Posts: 1387 |
|
|
| 26 Jun 2017 01:36 AM |
Try calling MakeJoints() on the model after it enters Workspace.
|
|
|
| Report Abuse |
|
|
|
| 26 Jun 2017 08:30 PM |
I tried but it still falls apart and if I weld the whole thing, the wheels wont move.
|
|
|
| Report Abuse |
|
|
| |
|