So I have this script, and if your name is one of the names inserted, you can view a gui, if not then you cant view it. Can anyone help me?
local People = {"NotSoNorm","VisualGraphics"}
local P = game.Players.LocalPlayer
function Check(name)
for i = 1, #People do
if (string.upper(name) == string.upper(People[i])) then --Works with lower, hm haven't tested.
return true
else
return false
end
end
end
while wait() do
if (Check(P.Name)) then
script.Parent.SergantCommand.Visible=true
else
script.Parent.SergantCommand.Visible=false
end
end

1 comment
I see where you are coming from, And that is correct. But there is another problem. But thanks for fixing that line. c: