Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to detect a VIP server owner?

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

✓ Accepted answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.