ROBLOX Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Group Leaderboard [ROBLOX]

Go down

Group Leaderboard [ROBLOX] Empty Group Leaderboard [ROBLOX]

Post by Guest97574 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)
Guest97574
Guest97574
Admin

Posts : 12
Join date : 2015-10-07

https://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