Saving undoes work

Whenever I save my project some of my work is undone. Any help would be appreciated.

I solved the problem I believe its related to my project being stored on google drive

Yes, it might be the reason. Another thing to note: You can change files located in built-ins to temporarily try things out, but you can’t save your changes. In order to permanently save these changes you need to copy the file(s) from builtins to your project assets.

I recommend using Git (and possibly Github) to version your project. That way you don’t lose your work if you accidentally do something wrong (you can always revert to the last/any commit). And working with multiple people or from multiple computers is much easier too.