We use cookies on this site to enhance your user experience

Detecting private servers

Detecting private servers

Sep 11 2018, 4:59 AM PST

DataModel/PrivateServerId and DataModel/PrivateServerOwnerId can be used to detect if the current server instance is a standard server, a VIP server or a reserved server.

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