so in my script, when you join the game the following code runs:
local Admins = {"PutNameHere", "cruizer_snowman"}
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Char)
if Player:GetRankInGroup(2832687) == 3 then -- just a double check
if Player.Name == Admins then -- checks if the players name is in the table of Admins
game.ReplicatedStorage.AdminPannel:Clone()
game.ReplicatedStorage.AdminPannel.Parent = Player.PlayerGui
end
end
end)
---------------------------------------------
local Folder = Instance.new("Folder", Player)
Folder.Name = "leaderstats"
---------------------------
local Warnings = Instance.new("IntValue", Player)
Warnings.Name = "Warnings"
Warnings.Value = 0
end)
to be honest, im not that great with tables :/ any help would be much appreciated!

1 comment
Thanks! just tested and it works!! i also just learned some new stuff so, thank you!