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 » Scripting Helpers
Home Search
 

Re: Rank Script

Previous Thread :: Next Thread 
sgtcarcione is not online. sgtcarcione
Joined: 05 Nov 2010
Total Posts: 319
03 Jul 2013 10:38 PM
Okay, so I have a group that has rank names that are TERRIBLY long. I have a rank leaderboard, but the rank names are too long. Is there any way I can set custom rank names for the number of the rank that it is in the group?

The script is:

game.Players.PlayerAdded:connect(function(P)
repeat wait() until P:findFirstChild("leaderstats")
local Rank = Instance.new("StringValue", P.leaderstats)
Rank.Name = "Rank"
Rank.Value = P:GetRoleInGroup(892279)
end)
Report Abuse
StormTamer is not online. StormTamer
Joined: 11 Jul 2011
Total Posts: 1137
03 Jul 2013 11:16 PM
The only way using that script would be to change the ranks in the actual group, Im a noob at Lua so there might be other ways.

llorT ツ(Floodcheck always wins)
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
03 Jul 2013 11:19 PM
Player:GetRankInGroup(GroupID) returns the number rank in the group.

http://wiki.roblox.com/index.php/GetRankInGroup_(Method)
Report Abuse
sgtcarcione is not online. sgtcarcione
Joined: 05 Nov 2010
Total Posts: 319
03 Jul 2013 11:57 PM
I just want to form a custom, shortened form of the group role.
Report Abuse
sgtcarcione is not online. sgtcarcione
Joined: 05 Nov 2010
Total Posts: 319
04 Jul 2013 01:16 PM
Bump.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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