How I can know if a player owns a private server?

I want to know if there’s any way that I can check if a player owns a private server in my game

Assuming you want to check if a player owns a VIP server from an arbitrary server, there aren’t any ways to check if someone owns a vip server for your game. The best you can do is a custom implementation for private servers, but apart from that there isn’t anything.

The game has a PrivateServerOwnerId property. The documentation linked contains the exact code implementation.

1 Like

I think this will work:

Players.PlayerAdded:Connect(function(player)

        -- check if the player is the server owner
        if player.UserId == game.PrivateServerOwnerId then
            print("The private server owner has joined the game")
            -- SAVE DATA USING DATA STORE SERVICE THAT THIS PLAYER
            -- OWNS A PRIVATE SERVER..
        end
    end)

You can use DataStoreService value to determine if the player owns a private server or not.

7 Likes