Help with Reseting game?

Hello!

My game Spawn Stuff had a lot of feedback recently and there was one saying they want a reset button that would reset all stuff that was cloned from serverstorage to workspace to be deleted in workspace.

Screenshot_178

Then there would be a message that would pop up when they press the button:

Then a timer would appear on top of the button and will be able to press agian in 5 minutes:

I am using a proximity prompt to do this, the only problem is that i don’t know how to do any of this!
Here is what i would like: Everything cloned from serverstorage to workspace be deleted when the button is pressed, Proximity prompt will be disabled, Message would pop up and then will disappear 5 seconds later, after 5 seconds everything is removed from workspace except for these things:
Screenshot_180

Then after everything is deleted the 5 minute timer begins to count down until it reaches 0, then the proximity prompt will be enabled again and then the button will be active again and then after another player decides to reset everything it will repeat again!

I’m still learning how to code, i just don’t know how to do all of this but i would like somebody to explain how to do all of this with the code and all and explain or show how the code would work. I might learn a thing or two :grinning_face_with_smiling_eyes:

Anyways, i’m very sorry for all of this information but i really want to learn!

Cheers! :wink:

1 Like

make a remote in replicated storage, name it ‘ResetObjects’. Then make a script in serverscriptservice, name it whatever, and type in this:

also sry i didnt explain it much

Wait, why are you running game.Players.LocalPlayer in ServerScriptService? I thought you could only use the LocalPlayer property on a client-sided script.

Also, if this is on the client, then you can’t use ServerStorage or ServerScriptService.

omg i am so dumb sorry can u please help fix my script ;-;

I think that this thread shluld be in #help-and-feedback:scripting-support