Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:connect(function(player)
- local leaderstats = Instance.new("IntValue")
- leaderstats.Name = "leaderstats"
- leaderstats.Value = 0
- local rank = Instance.new("StringValue")
- rank.Name = "Rank"
- rank.Value = player:GetRoleInGroup(1005348) -- put group id in parentheses
- leaderstats.Parent = player
- rank.Parent = leaderstats
- end)
Add Comment
Please, Sign In to add comment