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

How to detect a VIP server owner?

Asked by 8 years ago

Is there a way to detect the owner of a VIP server, If so could you give me an example of what to use?

"VIPServerOwnerId", and "VIPServerId" I have no idea how to use.

1 answer

Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

What I would do is make a BoolValue that tells the server if they're the server owner or not.

--In a Server Script
game.Players.PlayerAdded:connect(function(plr)
    if not game:GetService("ReplicatedStorage"):FindFirstChild("PlayerIDs") then folder=Instance.new("Folder",game:GetService("ReplicatedStorage")) folder.Name="PlayerIDs" end
    local id=Instance.new("BoolValue",folder)
    id.Name=plr.UserId --The name of the BoolValue will be their id.
    if plr.UserId==game.VIPServerOwnerId then id.Value=true else id.Value=false end
end)

Ad

Answer this question