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

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

Asked by 5 years ago
Edited 5 years ago

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.

0
delete old model, spawn new model Vulkarin 581 — 5y
0
only if that old model is a clone of another model, if not, set the parent to server storage theking48989987 2147 — 5y

1 answer

Log in to vote
0
Answered by
worklok -24
5 years ago

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.
0
Ok but where do I add this? Is it just another script or add it to Malvaviscos's script. LegoMaster460 -23 — 5y
Ad

Answer this question