Studio sometimes resets scripts to earlier verisons

Ive had this bug occur a few times in the last month or two. Sometimes, when I type some new code and switch to another tab (Such as another script or the game), roblox reverts the scripts back to a earlier version. This bug is very frustrating, because the only way to fix it is to restart studio. Sometimes I will be scripting large amounts of code and decide to test it, and then I lose it all (Publishing doesn’t make a difference, it will just publish the earlier version on that script. Team Create was turned off

This may be something to do with my wifi, if it lost connection for a second. I doubt that would be the problem though.

10 Likes

Is this with LinkedSource?

No, its happens in all scripts. So if I were to change something in another script, it would revert also.

Is it only after a play solo? Or anytime after you close it?

Anytime I close the script or even just change tabs like the picture below.f2bb053358c94cea088ddc4a1a61ba97438901aa.PNG

Is this in Team Create? Might want to stick that information in the original post.

No, I made sure team create was off

Has this ever happened to you with small amount of Script changes?

Has this ever happened in a place with few assets in it?

It has happened with both small and large amounts. I could type “print(“Test”)” then switch tabs and come back, and it would not say, “print(“Test”)”. It has also happened with a few assets in it

1 Like

Sorry for all the questions, I’m just unable to repro here so far.

  • Has this happened with a short script (<100 lines)?
  • Has this only happened with long scripts (>1000 lines)?
  • Do you run any test modes (Run, play solo, start server, etc.) before this issue happens (Not necessarily immediately before)? Does this happen when you’re emulating something?
  • Was an autosave happening at the same time as the switch?
  • What types of assets are in the place when this happens (Meshes, terrain, etc.)?
  • Do you have any plugins installed? Does this happen without them?
  • When this happens, what type of Script does it happen to (Local, Regular, Linked)?

If this happens again to anyone, can you send me the original script and the changes you were trying to make?

I think I’ve experienced this aswell.
I code a ton of stuff, then I go debugging and wonder why nothing is working.
Then half my code is gone as if I never wrote it in the first place. Makes me crazy paranoid!

EDIT: I never teamcreate scripts.

1 Like

I’ve had this happen to me as well. It seems like studio is silently failing to obtain a script lock? For me, CurrentEditor property of the script seems to be blank while the script is open and I’m editing it.

Also, might have something to do with connection to team create servers? Me and PlaceRebuilder are both Swedish.

1 Like

This happens with all types of scripts. I haven’t tried it over 1000 lines, it usually happens with small amounts of code. I do run test modes, but I found the issue before I ran the next one. I don’t know if it happened while a auto save, but if you type something after that and switch tabs, it also reverts. There are a few meshes in my place. I haven’t tried it without plugins.

If you aren’t in Team Create, CurrentEditor should always be empty. It is also empty if you open a script in Team Create and don’t make any changes.

What OS are you all on?

Windows 10

It’s happening in team create, even after making changes to a script. CurrentEditor always stays blank when it happens.

On Windows 10.

So it looks like there are two different issues in this thread now, one in Team Create and the other in standard Studio.

For both of these issues, the next time this happens to you, please send me the place file in question, the changes you were trying to make when they were reverted (can be an approximation), and your log files from that session.