Hey! Recently, I tried to make an admin system, And when i want to detect my id of roblox, Nothing happens, Here is my code.
local Players = game:GetService("Players")
local AdminIDs = {"1165324570"}
Players.PlayerAdded:Connect(function(player)
if table.find(AdminIDs, player.UserId) then
print("Admin joined.")
end
end)
local Players = game:GetService("Players")
local AdminIDs = {1165324570} -- Turned into an integer
Players.PlayerAdded:Connect(function(player)
if table.find(AdminIDs, player.UserId) then
print("Admin joined.")
end
end)