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

Humanoid/Model Script Question?

Asked by 9 years ago

I have a model with a lot of parts and when i unAnchor it and play it just falls apart, How do i fix this?

http://www.roblox.com/Model-item?id=270543872

0
Try anchoring every part:) let me know if this helped iSvenDerp 233 — 9y
0
Well i have a model and what i want it to do is follow a player who comes in certain range of the model and follow the person, how do i do this? QuantumScripter 48 — 9y
0
That does not fit what you were asking at all but ok:3 iSvenDerp 233 — 9y

1 answer

Log in to vote
-1
Answered by 9 years ago

If you absolutely need them to be unAnchored, then you can weld them together with this simple script that goes into the model.

local Model = script.Parent
local Parts = Model:GetChildren()

for i = 1, #Parts do
    if Parts[i]:IsA('Part') or Parts[i]:IsA('UnionOperation') then
        local weld = Instance.new('Weld', Parts[i])
        weld.Part0 = Parts[i]
        weld.Part1 = Parts[i]
    end
end

Help me out by marking this as answer and giving me rep :P

Ad

Answer this question