I want to make a game with ranks, so When I JOIN A game it will automatically give me a rank.
Example: I am a Soldier in the Group, i joined the Game and im on the Soldier Team. I just got changed to Chairman in the Group, i rejoin, and now im Chairman.
^^ How do I make this Happen! ^^
PLEASE Answer
Do this:
local id = 0000 -- group id game.Players.PlayerAdded:connect(function(p) if p:GetRankInGroup(id) == 255 then p.TeamColor = game.Teams.Chairman.TeamColor end end)
GetRankInGroup
returns the rank number of the player in the group. 0 is for a guest, and 255 is for the owner.