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

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

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.

1 comment

0

replicatedstorage is parented to the game. do you see it?

2 answers

✓ Accepted answer

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!

3 comments

0

For someone who claims this is intuitive, you forgot to actually clone the Instance... don't cough at others' experience. 

0

how do i do that stuff though?? like where is the script, how do i make a copy, wheres replicated storage???

0

where do i specify the seconds and where do i enter the script

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

1 comment

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.

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