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

How GetPlayer() wont get users GetRankInGroup?

Asked by
TechModel 118
2 years ago
Edited 2 years ago

How can I make this work? it doesn't work after running is it because the player hasn't loaded? I look on roblox documentation but they don't explain much as how to they get their id? By character or humanoid something...

for i, v in pairs(game.Players:GetPlayers()) do
    v:GetRankInGroup(12345) > 1 then
    print("Not a member")
end
0
i think ur missing an if statement there ZeroToH3ro 82 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

You're using > which is "Greater Than" so, you're printing that they're not a member even if they are. Also, use 0 instead of 1, as it will still print not a member if they're the first rank in the group. Hopefully this helps, if you don't understand anything, I'd be happy to try to explain better!

0
Use < 1 or == 0 AdSomnum 20 — 2y
0
even doing that still give me error: Expected identifier when parsing expression, got '<' TechModel 118 — 2y
Ad

Answer this question