How do I check if a server is a VIP Server

I already tried looking on the forum but the most I found was “VIPOwnerId” which I cannot find anywhere.
Edit: I’m trying to make a game and I want the user to be in full control of the server if they are the owner of a VIP Server. I don’t know how to check if the game is a VIP server and I don’t know how to get the owner of the server if it is.

4 Likes

I just took this from the devhub.

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

Thank you so much! I thought that PrivateServerId was just for a private server (etc, kohls private server, i dont know how it works)

1 Like