Prompt developers with a confirmation message when deleting any kind of script

It’s currently too easy to accidentally delete a Script/LocalScript/ModuleScript in Studio. It happens to the PS99 team once every week or two and we have to dig it up from version history. Usually what happens is a script is accidentally deleted and nobody notices for a couple hours, so it’s too late to ctrl+z.

Right now you only get a “are you sure?” prompt when deleting a script that has an active draft. It should do the same for unmodified scripts.

8 Likes

Why not just make a plugin that does that for you?

I’m not sure if it’s possible to to so

It most definitely is. You could do that by looping through the game for scripts and seeing if a script gets destroyed. Now, when it does, simply show a prompt and if the user clicks “No, don’t delete” then the script should insert a script with the same data, done by copying the source of the script before deletion as well as that of it’s children.

Heck, I’ll make a plugin right now!

Making a plugin for any and all your problems isn’t the solution sometimes.

1 Like

It is a temporary solution though. We don’t know when roblox will add said feature and it seems like it a serious issue for the PS99 team.

Oh okay. I thought you were rejecting the feature request and telling them to make a plugin for it instead of this.

No, not really. I find this feature to be indeed useful but I don’t think roblox would add this any time soon. So for a temporary solution, give me an hour… or two… or three idk. I’ll make a plugin because I got nothing to do.

1 Like

3 hours later…

1 Like