Group Leaderboard [ROBLOX]

Go down

Group Leaderboard [ROBLOX]

Post by Guest97574 on Thu 08 Oct 2015, 15:25

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(GROUPID) -- put group id

leaderstats.Parent = player
rank.Parent = leaderstats

end)
avatar
Guest97574
Admin

Posts : 11
Join date : 2015-10-07

View user profile http://robloxforum.iftopic.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum