Ad
Log in to vote
1

Can you fix the issue with this isInGroup function?

Asked by 7 years ago

What's the problem with this?

                if 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. Everesty 1001 — 7y

1 answer

Log in to vote
2
Answered by 7 years ago

Try this:

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

Answer this question