How to check if player is in private server!

Hello so I wanted to ask how to check if the player is in a private server for example i want to make a text that shows if you are in private server or not!

1 Like
local function returnServerID()
	return game.PrivateServerId
end

if returnServerID() and not "" then
	print("This is a private server!")
end

Wrote this on phone; it should work :person_shrugging:

4 Likes

Thank you very much this worked for me!

1 Like

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