Advertisement
CDuckdk

Ranks

Jan 31st, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local playerStats = {}
  2.  
  3. game.Players.PlayerAdded:Connect(function(player)
  4. local leaderstats = Instance.new("Model", player)
  5. leaderstats.Name = "leaderstats"
  6.  
  7. local grouprank = Instance.new("StringValue", leaderstats)
  8. grouprank.Name = "Rank"
  9. local rank = player:GetRoleInGroup(4480202)
  10.  
  11. if rank ~= 0 then
  12. grouprank.Value = rank
  13. else
  14. grouprank.Value = "Guest"
  15. end
  16.  
  17. playerStats[player] = leaderstats
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement