Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to reset a group of blocks??? [closed]

Asked by 10 years ago

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

Closed as Not Constructive by AmericanStripes

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
TheMyrco 375 Moderation Voter
10 years ago

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
Ad