I have a click detector and I want only the people (names of them) in the table to be able to click it.
First I gather all the people in my group and everyone with a specific rank. (No IDs yet)
Admins = {}
for i, v in pairs(game.Players:GetChildren())do
if v:IsInGroup() and v.GetRankInGroup()then
table.insert(Admins, v.Name)
end
end
Then I tried to make a function to check if the clicker is in the table but then realized how do I do that? Hehe, help would be much appreciated! Thanks.
function onClick(click)
if click.Name == Admins then
end
end
