Im currently scripting an admin gui and i ran into a problem: im using ipairs to check if the player is in the admin table. Now Player1 is ~= my name so it deletes the gui. Is there a function to check if a table contains a string?
plr = game.Players.LocalPlayer
admins = {"OKRPLAY","Player1"}
for i,v in ipairs(admins) do
if v ~= plr.Name then
script.Parent:Destroy()
end
end

2 comments
if type(v) == "string" thenipairs takes longer than pairs.