Basically, if someone is in a table (called hosts), I want to do something... is it related to this?
for i,v in pairs(hosts) do
end
How would I do it?
If you can't understand, then...
for i,v in pairs(hosts) do
if (player is in a table called hosts) then
end
end
OBVIOUSLY , if player is in a table called hosts then isn't correct, but I need help with it. I hope you guys understand D;.
UPDATE: I may've worked it out, but I don't think so. Is this correct:
for i,v in pairs(hosts) do
if player.Name == v then
end
end

4 comments
One question, what's break?
Oh yeah, that was what I was looking for :P.
break just means that it exit outs of the current loop. I use it because you've already found what you're looking for and so there's no point continuing to loop through the rest of the values.
Okie dokes, thanks.