Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// The Jedi Order
- groupid = 4654305 -- group name
- game.Players.PlayerAdded:connect(function(newPlayer)
- newPlayer.CharacterAdded:connect(function(character)
- if newPlayer:IsInGroup(groupid) then
- local guigroup=Instance.new("BillboardGui")
- guigroup.MaxDistance = 100
- guigroup.Name=("TJOGUI")
- guigroup.Parent=newPlayer.Character.Head
- guigroup.Adornee=newPlayer.Character.Head
- guigroup.Size=UDim2.new(4,0,0.5,0)
- guigroup.StudsOffset=Vector3.new(0,2,0)
- local textgroup=Instance.new("TextBox")
- textgroup.Font = Enum.Font.SciFi
- textgroup.Size=UDim2.new(1,0,1,0)
- textgroup.BackgroundTransparency = 1
- textgroup.TextColor3 = Color3.new(255/255, 255/255 ,255/255)
- textgroup.TextStrokeTransparency = 0
- textgroup.TextTransparency = 0
- textgroup.TextScaled = true
- textgroup.TextWrapped = true
- textgroup.FontSize = 'Size14'
- textgroup.Parent=guigroup
- textgroup.Text = newPlayer:GetRoleInGroup(groupid)
- local UnrefinedRank = newPlayer:GetRankInGroup(groupid)
- local Person = newPlayer.Name
- end
- end)
- end)
- --// Remote Events
- game.ReplicatedStorage.RankTagOn.OnServerEvent:Connect(function(plr)
- local Player = game:GetService("Players");
- local Head = plr.Character:FindFirstChild('Head')
- Head.TJOGUI.Enabled = true
- end)
- game.ReplicatedStorage.RankTagOff.OnServerEvent:Connect(function(plr)
- local Player = game:GetService("Players");
- local Head = plr.Character:FindFirstChild('Head')
- Head.TJOGUI.Enabled = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment