Doesn't have any errors, at all.
local staff = {"Asperanator"} local function checkperms() -- Creating the function 'checkperms' for _, member in pairs(staff) do -- Cycles through the table 'staff' if member == player.Name then -- Checking if username equals to a name inside the table print("Access level: HAE Staff") else print("Access level: Restricted Access - Call's only") end end end panel.MouseButton1Down:connect(function() checkperms() end)