local Players = game:GetService("Players")
 
-- is this a VIP server?
if game.PrivateServerId ~= "" and game.PrivateServerOwnerId ~= 0 then
 
    -- listen for new players being added
    Players.PlayerAdded:Connect(function(player)
 
        -- check if the player is the server owner
        if player.UserId == game.PrivateServerOwnerId then
            print("The private server owned has joined the game")
        end
    end)
end

This is an article from roblox , it shows how to check if the player's id is the same as the privateserverownerid but thats not what I want. I want to to find the id of the player who bought it but do I auto. Like a bot auto finds it for me. Is that even possible? Please help.