local admins = {"NinjoOnline", "MerchantVIII"}
local player = game.Players.LocalPlayer
local hud = script.Parent
local adminButton = hud:WaitForChild("AdminButton")
print("Variables Checked")
game.Players.PlayerAdded:connect(function(player)
print("1")
for _, v in pairs(admins) do
if player.Name == v then
print(v.Name)
adminButton.Visible = true
end
end
end)
This is in a LocalScript. It doesn't print("1"). Before anyone says 'PlayerAdded doesn't work in LocalScripts', if you have seen the ROBLOX Wiki, it stats at pretty much the top that this function now works inside the client. It prints ("Variables Checked"), so the error seems to be when the player is added. Please help.
