Roblox Scripts Not Running

Wrote a script the other day on a baseplate that works fine while on the baseplate.
Had it exported to another game and it didn’t work.

After spending an hour or two debugging, I tried making a script with only 1 line in it:

print("olalala")

The script doesn’t print anything to the server console.
It’s a regular Script placed in ServerScriptService.
The same print script works in other baseplates.

Some other scripts in ServerScriptService seem to work, it’s just newly added ones that break.
Any ideas on what could be causing this?
Thanks in advance.

1 Like

Hey there! Have you checked if the Enabled property of the scripts are true?
Are you running the game by pressing Play?

1 Like

It Might also be other scripts halting this script because of a loop or something else, you could try running it parallel if necessary.

1 Like

you think we could see a screenshot of serverscriptservice?

1 Like

Yeah, the scripts are enabled.
It’s being tested through the studio playtest.

Is this the multithreading thing with actors from Parallel Luau | Documentation - Roblox Creator Hub?

Sounds like the game you exported to might have StreamingEnabled or API Services disabled, but more likely, the script is just not enabled or there’s weird corruption in the place.

Try this:

  1. Make sure the script’s “Enabled”
  2. Try moving the script to another location (like Workspace), see if it prints there.
  3. Sometimes places get bugged on export like uh try copying everything into a fresh baseplate manually instead of using “Publish As…”
  4. Check if the script’s parent exists on the server maybe something is deleting it silently.
  5. Also make sure no scripts are overwriting or deleting other scripts on runtime (seen that before lol).

If none of that helps, it’s probably a Roblox Studio bug and cloning the game into a new place usually fixes it.

1 Like

If the script is a server script (aka just regular “Script”) it should work everywhere. If it is a localscript it will only work in StarterPlayerScripts, StarterCharacterScripts, and a few others so that it is copied and placed into each player

1 Like
  1. Script is enabled.
  2. Scripts seem to work when put in other locations, put a script in StarterCharacterScripts and it seems to work.
  3. The game is a relatively old one so want to avoid making a new baseplate for it.
  4. It shows under the server test view on studio while playing.
  5. Seems to show under ServerScriptService when there, just isn’t running.

The exact same script (moved by exporting the rbxm file) seems to work on other baseplates, but I’m hoping to get it into the currently existing game.

But is it a localscript (client sided script)?