Bug
Script changes made in Team Create do not always save, even after the script editor tab has been closed and the game has either been Published or Saved to Roblox. There is no need for any other users to also be editing in Team Create at the same time.
The changes do take effect in the same Team Create session. You can verify this as follows:
- Re-open the script editor (changes are visible); or
- Enter Run / Play Solo (any changes that produce effects, e.g. printing to output, will do so)
However, upon re-opening the place (from website or from Studio), the changes are reverted and the user is given this prompt:
This bug seems to have been happening for a while (see below for some relevant threads). I can reproduce it on my machine running Studio version 0.391.0.313677 (64bit) on Windows 10.
Repro
This bug happens 100% of the time when these steps are followed:
-
Create a new Place, save or publish to Roblox, and enable Team Create
-
Create a Script, place it in ServerScriptService, and enter the Script Editor
-
Replace the default code with
print(0)
-
Close the Script Editor and save or publish to Roblox
-
Exit and re-open the place in Studio
-
Observe that the Script contains
print(0)
(save was successful) -
Having opened the Script Editor tab, change the code to
print(1)
-
Without closing the Script Editor tab, enter Run or Play Solo mode
-
Observe in the Output window that
1
has printed -
Exit Run / Play Solo
-
With the Script Editor tab still open, change the code back to
print(0)
-
Close the Script Editor tab
(optional: verify the changes have been made in Studio by observing them in the Script Editor or by entering Run or Play Solo) -
Save or publish to Roblox
-
Exit and re-open the place in Studio
-
Observe the ‘unsaved script changes’ prompt pictured above
-
Observe that the script reads
print(1)
- the latest script changes have not saved
Info
It looks like there have been issues with Team Create not saving script changes for a while.
Relevant threads:
https://devforum.roblox.com/t/important-team-create-doesnt-save-some-script-changes/55730
https://devforum.roblox.com/t/scripts-sometimes-dont-save-in-tc/120101
https://devforum.roblox.com/t/changes-to-scripts-often-do-not-publish-even-outside-of-team-create/179384
https://devforum.roblox.com/t/team-create-losing-data/53250
https://devforum.roblox.com/t/scripts-getting-randomly-reverted-in-team-create/48561
Observations
There are two key features to this bug.
The first is reverting your script change so that the Script Editor thinks no changes have been made (going from print(0)
to print(1)
back to print(0)
).
The second is entering & immediately exiting Run / Play Solo after the first change with the Script Editor tab still open - not necessarily with the actual window open, but at least the tab.
Before entering Run / Play Solo, the tabs look as follows:
Once in Run or Play Solo, observe that the message sircfenner applied edits to script Script
appears in the output, and the tabs still look as pictured above. Normally when this message appears, the asterisk beside Script*
in the tab disappears. This happens when you close a Script Editor tab, for example. However, in this case the asterisk is still present despite the ‘applied edits’ message.
After exiting Run or Play Solo, observe that the tabs still look as pictured above.
After changing the code back to its original state (from print(1)
back to print(0)
), observe that the tabs now look as follows (note that the asterisk disappears but no message appears in the output):
If I can explain or demonstrate this any better in person, I’m here at HQ so drop me a message or an email and we can find a time.