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

startScript re-entrancy has exceeded 3?

I'm making an eye that is supposed to pulsate, however, I keep getting this error. It's really weird, as I've never seen it before.

Script;

local eye=script.Parent:Clone()
eye.Parent=workspace["Wisdom Fate Gauntlet"]
spawn(function()while wait() do
	eye.Transparency = 1
	eye.eyeMesh.Scale = Vector3.new(0.35, 0.35, 0.35)
	wait(1)
	eye.Transparency = 0
	for i = 1,10 do
		wait()
		eye.eyeMesh.Scale = eye.eyeMesh.Scale + Vector3.new(0.01, 0.01, 0.01)
		eye.Transparency = eye.Transparency + 0.1
	end
end
end)

I've read upon it and they say it has something with too many clones, but there's no loop or anything causing too many..?

1 answer

✓ Accepted answer
local eye=script.Parent:Clone()

This tells me that this script is a child of of the thing being cloned. This means, that whenever script.Parent is cloned, the same script is run again, which then clones script.Parent... etc. This goes on forever.

Either move the script outside of the thing you're cloning or disable the script right after cloning.

1 comment

0

Never accepted this answer even though it worked. Woops.

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