How do I make a map reset script?

Hello, I’m currently working on a medieval game and I would like the map to reset to it’s original form since the building can be blown up etc. How would I go by doing this?
(Keep in mind i’m really new to scripting)


Can you give us more information are you trying to make it once It’s blown to peaces it’s gone after a duration of time? Or like the map changes much like a mini game. The more details the better.

After 5 minutes “wait(300)” I would like it to reset.

1 Like

There are a couple of ways you can do this, one way to do this is to place your map or parts of your map in the replicated storage and when you need to clone your map simply do so on the server ( so every can see the changes) . To clean up your map i would recommend placing all parts/buildings( or your whole map) in a model or folder to later Destroy.

While i am not going to provide a full script for this, the bases of what you need to learn is Destroy and Clone

This might help you understand:


Since you’ll probably need to do a reset of your destructibles due to being unable to undo actions on the fly, I would recommend keeping them in ServerStorage. You’d clone out this folder or whatever when the server first starts and then every 5 minutes, cycle out the current model for the new one. It should be in an easily accessible manner, so I recommend folders to keep everything neat and tidy.

If the map is hidden in ServerStorage or ReplicatedStorage, can’t you just :Clone() again?