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

How do I regen the map in my game????

Asked by
5ug4rrr -3
3 years ago

How do I regen the map??? I'm making a destruction game and I need to know how to make it regen/reset once in a while. Also if you have a script please tell me how to put them in.

no mods this isnt a "request". i cant script roblox games, i dont know how. thats why i asked here. im asking if there is a script to make the map regenerate once in a while and if there is to please tell me how to put scripts in. that is not a request, that is me being confused asking people for help.

0
replicatedstorage is parented to the game. do you see it? busterk66 18 — 3y

2 answers

Log in to vote
-2
Answered by 3 years ago

Ok man. For me this is like, super simple. But, better help a beginner. Okay, so make a copy of the map (make sure its a model or a folder) and put it in ReplicatedStorage. Then, in a script write this:

while wait(1) do --Replace the 1 with the amount of seconds you want to wait between regening
    workspace.MapName:Destroy() --Replace MapName with the name of the model or folder
    local clone = game.ReplicatedStorage.MapName --Replace MapName with the name of the model or folder
    clone.Parent = workspace
end

This loop will wait however many specified seconds before destroying the origin map in the workspace, then cloning the clone of the map in ReplicatedStorage, then moving the clone to the workspace, wait, repeat! It's simple!

0
For someone who claims this is intuitive, you forgot to actually clone the Instance... don't cough at others' experience.  Ziffixture 6913 — 3y
0
how do i do that stuff though?? like where is the script, how do i make a copy, wheres replicated storage??? 5ug4rrr -3 — 3y
0
where do i specify the seconds and where do i enter the script 5ug4rrr -3 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

You can insert HD ADMIN in your game, and use command ;loadmap

0
also in settings you can make this ability able for everyone. I recommend you to don’t give Free admin (it must be non admin), at the end of settings script type load map - non admin as shown in the example. Type about this ability in description or make text label in game and type about it. nikitos54327 70 — 3y

Answer this question