Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What is wrong with this...?

It says I need an End but if I have it, it says that 'call' is an Unknown global 'call' so Im confused.

for _,v in pairs(game.Players:GetChildren()) do
local HighAdmins = {"EmperorVolvax"}
local LowAdmins = {""}
function tableContains(t, value)
    for _, v in pairs(call) do-- Call there
        if v == value then 
            return true
        end
    end
    return false
end
end

1 answer

In the for loop, you use a variable named call. This doesn't seem to previously be defined in your script. If you have, try making it a local.

2 comments

0

Its The Variables Like, for, if, then, while,true, do, and, or, until, return, false, So I dont understand what you mean by saying 'Define' It.

0

Call is not defined meaning it's a nil value. It's not a defined variable.

This discussion is preserved as it was. New answers, comments, and votes are closed.