Scripts being deleted for no reason?

Hello!

I’ve encountered an issue regarding a script for an on/off light switch.

Basically, I inserted a script that would turn a light on and off, but when I just opened Studio, the script had been deleted. I opened script recovery, and sure enough, the script was gone. I tried inserting it again, but the same thing happened. There is no legitimate reason the script should be getting deleted.

My questions are…
What should I do? Is the problem on Roblox’s end? Also, how could I recover the script?

Are you inserting it while a server is running? Where are you putting the script? ServerScriptStorage, ReplicatedStorage, etc. ?

Where is this script located? If it’s server sided then you won’t see it in game. (If it’s in ServerScriptService)

I forgot to mention that I inserted the script for multiple other lights in the game and it worked fine, it’s just the one light where it won’t work because it was “removed.”