This frame is inside a gui and only users that are listed should be able to view it. This script does not work, so what could I do to check if the player is in the Admin table?
Here is my attempt
Admin = {"IntellectualBeing"} local Frame = script.Parent if Admin then Frame.Visible = true else print('You do not have permission to view this!') end)
It's in a table, so it's like you're getting a list of names, use a loop to retrieve the names.
Admin = {"IntellectualBeing"} local plr = game.Players.LocalPlayer local Frame = script.Parent for i = 1, #Admin do if plr.Name == Admin[i] then Frame.Visible = true else print('You do not have permission to view this!') end end