Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I check whether the server is a VIP server or not?

Asked by
DemGame 271 Moderation Voter
4 years ago

I have a GUI that I want to change the properties of when someone uses it in a VIP server. Any suggestions?

2 answers

Log in to vote
1
Answered by 4 years ago
if game.VIPServerOwnerId ~= 0 then
    print("VIP server")
elseif game.VIPServerId ~= "" then
    print("Reserved server")
else
    print("Public server") -- "public" includes "Friend only" places
end
0
Do I have to change any values inside of this script? DemGame 271 — 4y
0
Well basically instead of the "print" commands you would have your own code for your gui mybituploads 304 — 4y
1
Thanks. DemGame 271 — 4y
Ad
Log in to vote
2
Answered by
raid6n 2196 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

VIPServerOwnerId or VIPServerId

If they are nil then it is not a vip server.

Answer this question