So I’m trying to make it so, if you are in a group and have a rank in the group, a gui appears in game. I’ve been trying to mess around with some scripts and none of them seem to work. Any help?
1 Like
game.Players.PlayerAdded:Connect(function(playerJoined)
if playerJoined:GetRankInGroup(group id here) then
-- code here
else
--code here
end
end)
how about this?
1 Like
I didn’t mean just the group it’s self, I mean’t, the group and the RANK.
I think from what I remember there is a GetRankInGroup()
which I used for this. On mobile, so cannot check my scripts now.
Edit: I checked and it is valid. So what you want to do is.
game.Players.PlayerAdded:Connect(function(plr)
if plr:GetRankInGroup(GroupId) >= Minimum Rank then -- Rank is from 0 - 255
--Code Here
end
end)
Edit2: Link
Edit3: @stqrrydev your code would not work because you are only getting the rank and not checking if the rank is above the minimum rank
3 Likes
Oh alright cool, sorry about that I couldn’t check it, I don’t have access to studio atm.
Yes, this is exactly what I wanted. Thank you so much man!