Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How GetPlayer() wont get users GetRankInGroup?

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

1 comment

0

i think ur missing an if statement there

1 answer

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!

2 comments

0

Use < 1 or == 0

0

even doing that still give me error: Expected identifier when parsing expression, got '<'

This discussion is preserved as it was. New answers, comments, and votes are closed.