VIP Server Owner

Would this work to grab the VIP Server Owner username even if they are not in-game?
script.Parent.Text = game.Players:GetNameFromUserIdAsync(game.PrivateServerOwnerId)

And how would I tell if its a vip server

2 Likes

I don’t see why that wouldn’t work to check a VIP server’s owner, even if they are not in-game.

This thread may help you to check whether a server is VIP or not, basically checking the value of game.PrivateServerOwnerId. If it’s ~= 0, then it would be a VIP server.

1 Like

So long as someone is in the VIP server, think you may be able to.

I think you can use this

if (game.PrivateServerOwnerId ~= 0) then
    script.Parent.Text = game:GetService("Players"):GetNameFromUserIdAsync(game.PrivateServerOwnerId)
else
    script.Parent.Text = "" -- Set it to something else maybe
end