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

Can you fix the issue with this isInGroup function?

Asked by 11 years ago

What's the problem with this?

1if Player:isInGroup(v) and Player:GetRankInGroup(v) == for i,v in pairs(rankid) then
0
In the future, please try to have your title be a bit less vague. User#2 0 — 11y

1 answer

Log in to vote
2
Answered by 11 years ago

Try this:

1for i, v in pairs(rankid) do
2    if Player:IsInGroup(v) and Player:GetRankInGroup(v) > 1 then -- Check the rank in group (1 - 255) if its over 1 continue.
3        -- do stuff
4    end
5end
Ad

Answer this question