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

How to use a table as a variable?

Asked by 3 years ago

I tried doing this:

wait(0.1)
plry = game.Players.LocalPlayer
local highrank = {
    "Todesscharfschutze",
    "RazorXX2",
    "madekid"
    }
for i, v in ipairs(highrank) do
    if plry.Name ~= v then
        script.Parent.Parent = game.Lighting
    end
end

I want like a table of players that can do certain stuff. I have no idea how to do this. Plz help.

0
I’m a bit confused sorry if it’s obvious terraria265 5 — 3y
0
ur doing good lol. i dont think theres something wrong in ur script. Dehydrocapsaicin 483 — 3y

Answer this question