– Game Stuff –
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
– Events –
local AdminEvent = ReplicatedStorage.Event:FindFirstChild(“AdminEvent”)
local CheckIfAdmin = ReplicatedStorage.Event:FindFirstChild(“CheckIfAdmin”)
– Admin IDS List –
local adminList = {“811710049”}
– Functions –
CheckIfAdmin.OnServerInvoke = function(player)
for i,v in pairs(adminList) do
if v == player.UserId then
return “IsRealAdmin”
end
end
end
So Basically im making a admin panel and I want to make sure no hackers can do anything with it if they’re ids isnt in the admin table but when i test it out it doesnt return because something is wrong and idk what.