|
| 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
|
  |
| Joined: 28 May 2016 |
| Total Posts: 139 |
|
|
| 06 Jul 2016 08:51 AM |
Display their name above their head or leaderboard?
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 06 Jul 2016 09:49 AM |
"it's head" "it's"
cringe
Add 13,000 posts |
|
|
| Report Abuse |
|
|