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

how to reset a group of blocks???

i creating a sort of deathrun but every round i need it to reset so i can click the button again and the trap will work again

1 answer

✓ Accepted answer

Make a clone* of the item, and, when the map is finished, remove the old stuff and parent the clone into Workspace/where it should be.

*You can make a clone of something with the :Clone() method.

local backup = item:Clone()

--exexute code

old:Destroy() --the old items
backup.Parent = workspace

Or you can do this:

local map = item

while wait(60) do
	local clone = map:Clone()
	clone.Parent = Workspace
	--execute code
	clone:Destroy()
end

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