I made this basic admin script to give a certian player the admin leaderstat but it just gives it to everyone and i have zero clue why
game.Players.PlayerAdded:Connect(function(player) wait(2) if player.Name == "Thereal_Lucid02" or "Montygamer36" then player.Admin.Value = true else print("Not a admin!") end end)
1 Like
My bad, i actually did my own admin script and the way i did it is that i made a table and made it so that if the name inside the table matches with the players name then it gives i have no clue why your script gives it to everyone
1 Like
Dont know if it fixes it, maybe the value is already set to true?
The format might be wrong and gives it to everyone. Try this instead
game.Players.PlayerAdded:Connect(function(player)
wait(2)
if player.Name == "Thereal_Lucid02" or player.Name == "Montygamer36" then
player.Admin.Value = true
else
print("Not a admin!")
end
end)```
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.