Advertisement
RoScripter

Overhead Rank Gui

May 30th, 2020
15,605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local groupId = 1234567 --REPLACE THIS WITH YOUR GROUPID
  2.  
  3. game.Players.PlayerAdded:Connect(function(Player)
  4.     Player.CharacterAdded:Connect(function(Character)
  5.         local GuiClone = script.OverheadGui:Clone()
  6.         GuiClone.Parent = Character.Head
  7.        
  8.         local InformationLabel = GuiClone.InformationLabel
  9.        
  10.         local PlayerRank = Player:GetRoleInGroup(groupId)
  11.         InformationLabel.Text = Player.Name .. " - " .. PlayerRank
  12.     end)
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement