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

This Noob auto-spawn decided to just stop working. Why?

local m = game.ServerStorage.Clones.Noob:Clone()

while true do
	wait(1)
	local cloned = m:Clone()
	cloned.Parent = script.Parent
	cloned:MoveTo(Vector3.new(math.random(-150,150), 10, math.random(-150,150)))
	cloned:makeJoints()
end

This used to work, but it just randomly just broke, any ideas on why it broke?

Faulty line is local cloned = m.clone().

1 answer

✓ Accepted answer

The problem is, you are cloning an object that is already been cloned.

I suggest you do this :

local m = game.ServerStorage.Clones.Noob 
while true do
wait(1)
local cloned = m:Clone()
cloned.Parent = script.Parent
cloned:MoveTo(Vector3.new(math.random(-150,150), 10, math.random(-150,150)))    cloned:makeJoints()
end

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