EcIiptic
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 13737 |
|
|
| 02 Jan 2014 05:56 PM |
Okay my question is. Is there a way to put everything where you want to put it, then in one action, weld everything together where the parts all are currently?
I'm wondering this cuz...
WELDING IS SO FREAKING TEDIOUS. |
|
|
| Report Abuse |
|
|
StBashkir
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26171 |
|
|
| 02 Jan 2014 05:59 PM |
If you put them in a model and use this in, say, the command bar (yes, the command bar can have multilined scripts).
function WeldModel(m) local base; for i,v in pairs(m:GetChildren()) do if v:IsA("BasePart") then if not base then base = base else local w = Instance.new("Weld", game.JointsService) w.C1 = v.CFrame:toObjectSpace(base.CFrame) w.Part0, w.Part1 = base, v end end end end
WeldModel(Workspace['ModelName']); |
|
|
| Report Abuse |
|
|
EcIiptic
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 13737 |
|
|
| 02 Jan 2014 06:05 PM |
Doesn't work.
My modal's name is called "Missile" And all parts are of "Part" classname.
I tried editing your script for that,but it didn't weld. |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 02 Jan 2014 06:13 PM |
@StBashkir
if not base then base = base
should that not be base = v
@Ecliptic
Search for "Auto Weld" in free models, there's plenty out there |
|
|
| Report Abuse |
|
|