local groupId = 5144614
local Admin = game.Players.LocalPlayer.importantplr.Admin
function added(player)
if game.Players.LocalPlayer:GetRankInGroup(groupId) <= 16 then
game.Players.LocalPlayer:WaitForChild("importantplr")
game.Players.LocalPlayer.importantplr:WaitForChild("Admin")
Admin.Value = true
else
Admin.Value = false
end
end
game.Players.PlayerAdded:connect(added)
Its purpose is to change a value known as admin, which is a boolean that is used so my scripts can read it and then decide if the player should see somethings or not. It keeps niling. I dont understand why, thanks for the help.

6 comments
Try maybe defining local player on line 01 as "local players = game:GetService("Players")
Then putting "local player = Players.LocalPlayer
@ExHydraboy nice try but there isn't really a difference between "game.Players" and "game:GetService("Players")"
is this on the client or server?
server
You can not get the local player on the server