No Access to "ServerScriptService" in LIVE GAME environment (?)

  1. What do you want to achieve?
    I’d like my serverscripts to run!

  2. What is the issue? Include screenshots / videos if possible!
    I’m trying to test my game ‘live’ - ie. publishing and testing it on Roblox, and NOT in Studio. I’ve run into some major issues accessing ‘serverscriptservice’ - basically no scripts in there are being recognized nor run. EVERYTHING works perfectly well when I test in Studio - no issues at all.
    I’ve now got to the point where I’ve created a new ‘game’ with absolutely NOTHING in it except ONE debug serverscript (placed in ‘serverscriptservice’.) Again, ‘serverscriptservice’ doesn’t seem to be recognized, the debug script doesn’t run, and there are NO print statements output.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve tried the obvious things:

  4. Yes, the script is enabled.

  5. “Check permissions” - permissions are 100% fine.

  6. “Check script context” - it’s a server script, placed in ‘serverscriptservice’, so should be fine.

  7. “Check script conflicts” - this is now the only script in the entire game!

  8. Check “Service Availability” - both ‘DataStoreService’, ‘MessagingService’ are working fine.

  9. “Latency Issues” - Unlikely. There is NOTHING else in this ‘test’ game, not even any models - just the baseplate, and the serverscript.

  10. “Group Access” or “Team Create” issues - nope, I’m working on my own, no team.

For the record, here’s the debug script I’m using. Again, this outputs perfectly well in Studio, but NOT in the live game:

print("Basic Test Script: Server script started")

local function debugTest()
	while true do
		print("Basic Test Script: Running")
		wait(5)
	end
end

local success, errorMessage = pcall(debugTest)
if not success then
	print("Basic Test Script: Error occurred - " .. errorMessage)
else
	print("Basic Test Script: Function executed successfully")
end

I’m really scratching my head. This makes no sense. I understand potential ‘conflicts’ in a larger game, but I’ve now reduced this to just one simple test script … And it still won’t run!!! Pulling my hair out :frowning:

This is really interesting. Could you try in other places (either universe-separated or in the same universe) and see if ServerScriptService works there? If it doesn’t, could you share a place file?
Ofcourse being a live client-only issue it will be very complicated to determine what’s happening. Suppose you should also search for any script accessing ServerScriptService or checking if the current server is a live one using RunService.

1 Like

Thanks for the quick response, but I already used RunService and checked - the server IS live. Also, like I said, to get to the bottom of the issue, I’ve just created a ‘test game’ with just ONE serverscript ‘running’, so it can’t be a script conflict. To all intents and purposes it seems like ‘serverscriptservice’ is just being ignored/bypassed. Really strange.

1 Like

I don’t have any idea what could be causing this, so I’d say to report this as a bug. It seems like no FFlag would change the behavior of SSS

2 Likes

Yeah, it’s baffled me. I’m NOT a coding “noob”, and I’ve checked pretty much everything!! I’ll stick around for a little longer, see if anyone else offers a suggestion, then I’ll report it. :-/

2 Likes

This is strange. Try putting a server script in the Workspace, which prints game:GetService("ServerScriptService") and that debug script at intervals. That could probably get you somewhere.

I’ve never seen something like this and I hope it’s some sort of plugin or other external factor somehow causing this, because this being a bug would be painful to deal with until it’s fixed.

1 Like

Ok, I’ve checked this out further. And it gets even more mysterious. Chances are I’m missing an important step somewhere (I’m a coder, not so much a ‘server guy’), but I’m not sure.

  1. For the record, the game IS published, and set so that ‘friends’ can play.
  2. I’m testing the game on one of my “friend’s” accounts (an alt account.) These permissions seem ok, because the ‘friend’ can enter the game, move around, etc.
  3. As mentioned, serverscripts do not run AT ALL, when the ‘friend’ plays.
  4. Now, when I log OUT of that ‘friend’s’ account, and then login with my OWN account … Everything runs just fine.
  5. Changing the permission to ‘Public’ does NOT solve the problem - serverscripts in “serverscriptservice” STILL won’t run for ‘friends’ (only on the creator’s account.)
  6. A further note, I’ve tested this all rigorously on THREE different set-ups: PC, laptop, and Airbook - it’s the same issue across all platforms.
    Again, am I missing something in the publishing process? I assumed that if I set the permissions to “Friends”, then any friends will have full access to the game? And again, this seems to be the case, because ‘friends’ CAN enter the game (I assumed they’d be ‘blocked’ if I set the game to ‘private’, correct?)
    Ultimately, this ain’t good! I can’t publish a game that ONLY the game’s creator can play! That destroys the whole idea!
    Any pointers are TRULY appreciated!
1 Like

Just wondering if anyone’s seen this? Really scratching my head, and would love some help :slight_smile:

1 Like

idk that is weird maybe try contacting roblox support about that

1 Like

Thanks to all who replied - I’m closing this now.
I woke up this morning, tested things again, and now all seems to be working (!?) For the record, I have touched NOTHING since I last tried. Very weird.
I’m guessing something was glitching on Roblox servers, but good to finally work out it’s nothing I screwed-up my end.