How to check if a server is a Private Server?

How can I check if a server is a private server or not?

1 Like
if game.PrivateServerId ~=  "" and game.PrivateServerOwnerId ~= 0 then
    print('private server')
end
9 Likes

check here for your solution!

4 Likes

Got this from this

local function getServerType()
	if game.PrivateServerId ~= "" then
		if game.PrivateServerOwnerId ~= 0 then
			return "VIPServer"
		else
			return "ReservedServer"
		end
	else
		return "StandardServer"
	end
end
9 Likes

Thank you guys for showing me the answer. Already working on the Private Server Settings!

2 Likes