Roblox Studio local server test detects players as age 0

When using local server test in Roblox Studio, the players are detected with an age of 0. This means that any games with minimum age scripts will kick the test clients and the game is not testable.

I realize it’s a minor issue since the script can just be deactivated, but this is tedious for me to do because of how our system is set up. I hope this will be addressed anyway.

Expected Results
Local Server test should have players’ age match your account’s age.

Screenshot

1 Like

Iirc local servers use ‘fake’ accounts with negative UserIds; this breaks quite a few different systems as a result. I’m assuming this is probably intended, albeit I may possibly be wrong in that assumption. Regardless, as a workaround, at least for now, you could always just ignore that specific check for negative UserId values. There are a lot of other errors that can also occur due to not defining behaviour for these negative UserIds so even if this particular case was changed in behaviour; you may come across further errors in other game-features which rely on getting user-info.

In an ideal world, we’d have the ability to set up spoofed info for these negative UserIds in Studio for testing purposes, although afaik we don’t currently have that functionality without writing a wrapper.

2 Likes

I wouldn’t really see this as a bug, as said above it’s not a true game server so some information is not accurate. I believe team test might mitigate this, but at the same time, why would you be restricting access because of account age?

2 Likes

@JavascriptLibrary
A method to prevent a brand new game from getting botted. Not very effective, but even 1% of a difference counts when just one DDOS can ruin your game forever.

As others said, it’s intentional. You’re meant to detect it inside a script and create a custom behavior for it. Although I would prefer if they made the account age also a negative for consistency and to be 100% sure. You can also just use RunService:IsStudio() to just skip the check entirely.

3 Likes

Just use the IsStudio check like nooneisback suggested, the properties of the players in test servers are intended and not a bug, otherwise you should do a feature request, they’re working on custom players for testing but I think that’s only for the local play test and not server, you can suggest more customizability on it and for it to work on server tests too

2 Likes

I checked, the user IDs are detected as zero!

Going to close as not a bug - thanks everyone!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.