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

I script for the part to only clone once, but instead 2 cloned parts come out?

So I am making a script that clones a part,and then destroys that cloned part, and ads a new cloned part.What is weird, is that when it clones the second cloned part, it clones 2 of them,instead of 1.

1 comment

0

show script pls

1 answer

✓ Accepted answer

I believe what you want to do is this, but since you have not supplied any code I can't really help you that well. Here's what I've got.

for i = 1,2 do
	local Part = Instance.new("Part")
	coroutine.wrap(function()
		wait(3)
		Part:Destroy()
	end)()
end

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