generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How to put group rank into a leaderboard.

Previous Thread :: Next Thread 
LuckyScaryBookworms is not online. LuckyScaryBookworms
Joined: 26 Feb 2012
Total Posts: 206
06 Jul 2016 08:50 AM
In some popular group games it displays the rank of the member. anyone have a script for this. I'm unsure how to do this.
Report Abuse
MysticKey is not online. MysticKey
Joined: 28 May 2016
Total Posts: 139
06 Jul 2016 08:51 AM
Display their name above their head or leaderboard?


Report Abuse
MysticKey is not online. MysticKey
Joined: 28 May 2016
Total Posts: 139
06 Jul 2016 08:56 AM
Here's leaderboard
id = GroupIDHere
game.Players.PlayerAdded:connect(function(plr)
local string = Instance.new("StringValue")
local leader = Instance.new("IntValue")
string.Name = "Group Rank"
string.Parent = leader
leader.Name = "leaderstats"
leader.Parent = plr
string.Value = plr:GetRoleInGroup(id)
end)


Report Abuse
LuckyScaryBookworms is not online. LuckyScaryBookworms
Joined: 26 Feb 2012
Total Posts: 206
06 Jul 2016 09:45 AM
It works but how do i make it show the ranks when you join? Like if a rank was trainee how do you make it show trainee?
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
06 Jul 2016 09:48 AM
make a billboard gui how you like it and then put that in server storage

when teh player joins you can do something like this

game.Players.PlayerAdded:connect(function(p)
repeat wait() until p.Character
local groupid =
local rank = p:GetRoleInGroup(groupid)

now, clone the billboard gui into the player and set the adornee to it's head

local gui = game.ServerStorage.Rank:Clone()
gui.Parent = p.Character
gui.Adornee = p.Character.Head

end)


Add 13,000 posts
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
06 Jul 2016 09:49 AM
"it's head"
"it's"

cringe


Add 13,000 posts
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image