Advertisement
GO0GL3_CHR0M3

Untitled

Oct 4th, 2019
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. local camera = workspace.CurrentCamera;
  2. local characters=workspace.Characters
  3. local players= game:service("Players");
  4. local player = game.Players.LocalPlayer;
  5. local run = game:service("RunService");
  6. local espfold = Instance.new("Folder", player)
  7. while wait(.1) do
  8. for i,v in pairs(game.Workspace.Characters:GetChildren()) do
  9. if players:GetPlayerFromCharacter(v)~=player then
  10. if (not espfold:FindFirstChild(v.Name)) then
  11. local pp=Instance.new("StringValue", espfold)
  12. pp.Name=v.Name
  13. spawn(function()
  14. local a=Drawing.new("Line");
  15. a.Thickness=0.5;
  16. a.Transparency=1;
  17. a.Visible=true;
  18. a.Color=Color3.new(255,255,255)
  19. a.From = Vector2.new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2 + 400)
  20. local runcon=run.Stepped:Connect(function()
  21. if not a then
  22. if characters:FindFirstChild(v.Name) then
  23. local a=Drawing.new("Line");
  24. a.Thickness=0.5;
  25. a.Transparency=1;
  26. a.Visible=true;
  27. a.Color=Color3.new(255,255,255)
  28. a.From = Vector2.new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2 + 400)
  29. local vector, onScreen= camera:WorldToScreenPoint(v.Hitbox.Head.Position)
  30. if onScreen then
  31. a.To = Vector2.new(vector.X, vector.Y)
  32. else
  33. a:Remove()
  34. if runcon then
  35. runcon:Disconnect()
  36. end
  37. end
  38. else
  39. espfold[v.Name]:Destroy()
  40. if a then
  41. a:Remove()
  42. end
  43. if runcon then
  44. runcon:Disconnect()
  45. end
  46. end
  47. else
  48. if characters:FindFirstChild(v.Name) then
  49. local vector, onScreen= camera:WorldToScreenPoint(v.Hitbox.Head.Position)
  50. if onScreen then
  51. a.To = Vector2.new(vector.X, vector.Y)
  52. else
  53. a:Remove()
  54. if runcon then
  55. runcon:Disconnect()
  56. end
  57. end
  58. else
  59. espfold[v.Name]:Destroy()
  60. if a then
  61. a:Remove()
  62. end
  63. if runcon then
  64. runcon:Disconnect()
  65. end
  66. end
  67. end
  68. end)
  69. end)
  70. end
  71. end
  72. end
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement