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 10 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. User#2 0 — 10y

1 answer

Log in to vote
2
Answered by 10 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