Aquarius_Raverus

Developer Proof

Jul 19th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.46 KB | None | 0 0
  1. --// The Jedi Order
  2.  
  3. groupid = 4654305 -- group name
  4. game.Players.PlayerAdded:connect(function(newPlayer)
  5.     newPlayer.CharacterAdded:connect(function(character)
  6.         if newPlayer:IsInGroup(groupid) then
  7.         local guigroup=Instance.new("BillboardGui")
  8.         guigroup.MaxDistance = 100
  9.         guigroup.Name=("TJOGUI")
  10.         guigroup.Parent=newPlayer.Character.Head
  11.         guigroup.Adornee=newPlayer.Character.Head
  12.         guigroup.Size=UDim2.new(4,0,0.5,0)
  13.         guigroup.StudsOffset=Vector3.new(0,2,0)
  14.         local textgroup=Instance.new("TextBox")
  15.         textgroup.Font = Enum.Font.SciFi
  16.         textgroup.Size=UDim2.new(1,0,1,0)
  17.         textgroup.BackgroundTransparency = 1
  18.         textgroup.TextColor3 = Color3.new(255/255, 255/255 ,255/255)
  19.         textgroup.TextStrokeTransparency = 0
  20.         textgroup.TextTransparency = 0
  21.         textgroup.TextScaled = true
  22.         textgroup.TextWrapped = true
  23.         textgroup.FontSize = 'Size14'
  24.         textgroup.Parent=guigroup
  25.         textgroup.Text = newPlayer:GetRoleInGroup(groupid)
  26.         local UnrefinedRank = newPlayer:GetRankInGroup(groupid)
  27.         local Person = newPlayer.Name
  28.         end
  29.     end)
  30. end)
  31.  
  32. --// Remote Events
  33.  
  34. game.ReplicatedStorage.RankTagOn.OnServerEvent:Connect(function(plr)
  35.     local Player = game:GetService("Players");
  36.     local Head = plr.Character:FindFirstChild('Head')
  37.     Head.TJOGUI.Enabled = true
  38. end)
  39.  
  40. game.ReplicatedStorage.RankTagOff.OnServerEvent:Connect(function(plr)
  41.     local Player = game:GetService("Players");
  42.     local Head = plr.Character:FindFirstChild('Head')
  43.     Head.TJOGUI.Enabled = false
  44. end)
Advertisement
Add Comment
Please, Sign In to add comment