Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isn't this working? - Mod GUI [HELP]

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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)
0
What are you trying to make it do? NinjoOnline 1146 — 8y
0
Check if there is a member in the table and then allow them todo something.. Asperanator -4 — 8y
0
Are player and panel defined earlier in the script? M39a9am3R 3210 — 8y
0
Yes. Asperanator -4 — 8y

Answer this question