Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Humanoid/Model Script Question?

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

3 comments

0

Try anchoring every part:) let me know if this helped

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?

0

That does not fit what you were asking at all but ok:3

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.