My scripts keeps resetting

Whenever I close roblox studio and reopen it the scripts reset and I don’t know how to fix it.

Original: https://gyazo.com/94aa046089f88840167f2ee64bf64e71 What it is resetting to

What I need it to be:https://gyazo.com/945c2be175a3406f9240c056dc289554

(This is my first time posting on the forum so sorry if it’s not in the right format)

This would be in script support, but its alright. Have you committed the script yet and maybe saved the game?

I do not believe this has anything to do with the scripts itself. Look more into studio itself, or contact Roblox for support.

Do you have collaborative editing on? You need to commit your changes.