When you test by ‘Play locally’, draft scripts are loaded and execute properly. However, if you test by opening a Local Server, the draft scripts do not get loaded, and instead only committed script changes are loaded. Admittedly, I am unsure whether this is a bug or intentional, but if it is intentional then I believe it should be changed to allow draft scripts to be loaded in Local Server tests (to allow testing with 2+ players).
This happens in studio, in a team create session with collaborative script editing enabled.
This started happening a few days ~ a week ago.
Image showing script on server vs in draft:
Playing locally:
Playing in Local Server:
Recreation:
- Create a new place in studio.
- Publish to roblox.
- Open to team create.
- Turn on ‘Collaborative Editing’ in Game Settings.
- Restart studio session.
- Make a new script in ServerScriptService. (ensure it is as default:
print("Hello World!")
) - Edit the script to print something else. E.g:
print("Hello Oof!")
- do not commit the draft - Test the game by ‘playing locally’. It will print your updated message in the server output.
- Test the game by opening a Local Server. It will print “Hello World” in the server output.
Again, not sure whether or not this is intentional, but I think it definitely needs changing.