Luiswhut

asdfha

Sep 6th, 2019
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. function Create(base, team)
  2. local bb = Instance.new('BillboardGui', game.CoreGui)
  3. bb.Adornee = base
  4. bb.ExtentsOffset = Vector3.new(0,1,0)
  5. bb.AlwaysOnTop = true
  6. bb.Size = UDim2.new(0,5,0,5)
  7. bb.StudsOffset = Vector3.new(0,1,0)
  8. bb.Name = 'tracker'
  9. local frame = Instance.new('Frame',bb)
  10. frame.ZIndex = 10
  11. frame.BackgroundTransparency = 0.3
  12. frame.Size = UDim2.new(1,0,1,0)
  13. local txtlbl = Instance.new('TextLabel',bb)
  14. txtlbl.ZIndex = 10
  15. txtlbl.BackgroundTransparency = 1
  16. txtlbl.Position = UDim2.new(0,0,0,-35)
  17. txtlbl.Size = UDim2.new(1,0,10,0)
  18. txtlbl.Font = 'ArialBold'
  19. txtlbl.FontSize = 'Size12'
  20. txtlbl.Text = base.Parent.Name:upper()
  21. txtlbl.TextStrokeTransparency = 0.5
  22. if team then
  23. txtlbl.TextColor3 = Color3.new(0,1,1)
  24. frame.BackgroundColor3 = Color3.new(0,1,1)
  25. else
  26. txtlbl.TextColor3 = Color3.new(1,0,0)
  27. frame.BackgroundColor3 = Color3.new(1,0,0)
  28. end
  29. end
  30.  
  31. function Clear()
  32. for _,v in pairs(game.CoreGui:children()) do
  33. if v.Name == 'tracker' and v:isA('BillboardGui') then
  34. v:Destroy()
  35. end
  36. end
  37. end
  38.  
  39. function Find()
  40. Clear()
  41. track = true
  42. spawn(function()
  43. while wait(1) do
  44. if track then
  45. Clear()
  46. for _,v in pairs(game.Players:players()) do
  47. if v.TeamColor ~= game.Players.LocalPlayer.TeamColor then
  48. if v.Character and v.Character.Head then
  49. Create(v.Character.Head, false)
  50. end
  51. end
  52. end
  53. end
  54. wait(1)
  55. end
  56. end)
  57. end
  58.  
  59. Find()
Add Comment
Please, Sign In to add comment