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

How do you regen a map after a round is finished?

How do you regen a map after a round is finished? I do not know how to script I am using Malvaviscos's last man standing scrip.

2 comments

0

delete old model, spawn new model

0

only if that old model is a clone of another model, if not, set the parent to server storage

1 answer

add a wait() and the time to wait inside wait,after wait time is over,simply use Clone(). example:

local map = game.ReplicatedStorage.MapName -- change `mapname` to your map model name,name it something else than model,and put your map in replicatedstorage
local waittime = 60 --change '60' to your desired wait time


while true do --loop
map:Clone().Parent = workspace --clones the map to workspace
wait(waittime) --waits the wait time stated above
workspace.MapName:Destroy() --destroys the map in workspace,and restarts the loop. clones from replicatedstorage and keeps doing it again.

1 comment

0

Ok but where do I add this? Is it just another script or add it to Malvaviscos's script.

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