Hello everybody,
I'd like to know if it's possible to reset my scripts write in the Workspace when the Character dies. For example, i change the color and material of a button when i click on it but after the Character dies, it's still changed. My goal is to reset the button to the original one. I tried to search on forum and Web but can't find anything about it.
I'd like to know if it exists a way to reset my scripts (one-by-one? or all at the same time?) Also, the game has many spawns (like a obby).
Thank you in advance for your help.

4 comments
idk but maybe v:Clone().Parent? so it happens everytime he resets i think
My bad i rushed it yea.
Thank you.
Badly, i probably made mistake (i'm new on learning LUA): i create Script in Starter Character Scripts (can't find Server Script) and copy/paste scripts from Workspace but the reset doesn't work on it.