Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local playerStats = {}
- game.Players.PlayerAdded:Connect(function(player)
- local leaderstats = Instance.new("Model", player)
- leaderstats.Name = "leaderstats"
- local grouprank = Instance.new("StringValue", leaderstats)
- grouprank.Name = "Rank"
- local rank = player:GetRoleInGroup(4480202)
- if rank ~= 0 then
- grouprank.Value = rank
- else
- grouprank.Value = "Guest"
- end
- playerStats[player] = leaderstats
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement