Advertisement
Ectroi

jahman

May 28th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. local camera = workspace.CurrentCamera
  2. for i, v in next, game:GetService("Players"):GetPlayers() do
  3. local line = Drawing.new("Line")
  4. line.Color = Color3.fromRGB(77, 143, 172)
  5. line.Visible = true
  6. line.Thickness = 3
  7. local text = Drawing.new("Text")
  8. text.Text = tostring(v)
  9. text.Color = Color3.fromRGB(255, 255, 255)
  10. text.Size = 20
  11. text.Visible = true
  12. text.Outline = true
  13. game:GetService("RunService").Stepped:connect(function()
  14. if v.Character == nil then
  15. line.Visible = false
  16. repeat wait() until v.Character
  17. line.Visible = true
  18. end
  19. local man, hacc = camera:WorldToScreenPoint(v.Character.Head.CFrame.p)
  20. local man2, hacc2 = camera:WorldToScreenPoint(game.Players.LocalPlayer.Character.Head.CFrame.p)
  21. if not hacc then
  22. line.Visible = false
  23. else
  24. line.Visible = true
  25. end
  26. line.From = Vector2.new(man.X, man.Y + 20)
  27. line.To = Vector2.new(man2.X, man2.Y + 20)
  28. end)
  29. game:GetService("RunService").Stepped:connect(function()
  30. if v.Character == nil then
  31. text.Visible = false
  32. repeat wait() until v.Character
  33. text.Visible = true
  34. end
  35. local man, hacc = camera:WorldToScreenPoint(v.Character.Head.CFrame.p)
  36. if not hacc then
  37. text.Visible = false
  38. else
  39. text.Visible = true
  40. end
  41. text.Position = Vector2.new(man.X - 30, man.Y + 30)
  42. end)
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement