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.
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.
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.