Advertisement
Helgodxdd

ESPCRISHOUX

Dec 31st, 2020
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local players = game:GetService("Players"):GetChildren()
  2. local Work = game:GetService("Workspace")
  3. function zigzag(X)
  4. return math.acos(math.cos(X * math.pi)) / math.pi
  5. end
  6. counter = 0
  7.  
  8. function ESPPOS(part)
  9. local screen = Work.CurrentCamera:WorldToViewportPoint(part.Position)
  10. return Vector2.new(screen.x, screen.y)
  11. end
  12.  
  13. function ESPBOX(part)
  14. local screen = Work.CurrentCamera:WorldToViewportPoint(part.Position)
  15. return Vector2.new(screen.x - (part.Size.X / 2), screen.y - (part.Size.Y / 2))
  16. end
  17. function ESPText(part)
  18. local name = Drawing.new("Text")
  19. name.Text = part.Parent.Name
  20. name.Color = Color3.new(math.random(), math.random(), math.random())
  21. name.Position = ESPPOS(part)
  22. name.Size = 23.00
  23. name.Outline = true
  24. name.Center = true
  25. name.Visible = true
  26.  
  27. game:GetService("RunService").Stepped:connect(
  28. function()
  29. local destroyed = not part:IsDescendantOf(Work)
  30. if destroyed then
  31. name:Remove()
  32. end
  33. if part ~= nil then
  34. name.Position = ESPPOS(part)
  35. end
  36. local _, screen = Work.CurrentCamera:WorldToViewportPoint(part.Position)
  37. if screen then
  38. name.Visible = true
  39. else
  40. name.Visible = false
  41. end
  42. end
  43. )
  44. game:GetService("RunService").Stepped:connect(
  45. function()
  46. local destroyed = not part:IsDescendantOf(Work)
  47. if destroyed then
  48. return
  49. else
  50. name.Color = Color3.fromHSV(zigzag(counter), 1, 1)
  51. counter = counter + 0.0001
  52. end
  53. end
  54. )
  55. end
  56.  
  57. function ESPLine(part)
  58. local Line = Drawing.new("Line")
  59. Line.Visible = true
  60. Line.From = Vector2.new(1000, 1000)
  61. Line.To = ESPPOS(part)
  62. Line.Thickness = 2
  63. Line.Transparency = 1
  64. Line.Color = Color3.new(math.random(), math.random(), math.random())
  65.  
  66. game:GetService("RunService").Stepped:connect(
  67. function()
  68. local destroyed = not part:IsDescendantOf(Work)
  69. if destroyed then
  70. Line:Remove()
  71. end
  72. if part ~= nil then
  73. Line.To = ESPPOS(part)
  74. end
  75. local _, screen = Work.CurrentCamera:WorldToViewportPoint(part.Position)
  76. if screen then
  77. Line.Visible = true
  78. else
  79. Line.Visible = false
  80. end
  81. end
  82. )
  83. game:GetService("RunService").Stepped:connect(
  84. function()
  85. local destroyed = not part:IsDescendantOf(Work)
  86. if destroyed then
  87. return
  88. else
  89. Line.Color = Color3.fromHSV(zigzag(counter), 1, 1)
  90. counter = counter + 0.0001
  91. end
  92. end
  93. )
  94. end
  95.  
  96. function ESPSquare(part)
  97. local Square = Drawing.new("Square")
  98. Square.Visible = true
  99. Square.Position = ESPBOX(part)
  100. Square.Size = Vector2.new(39, 59)
  101. Square.Thickness = 2
  102. Square.Filled = false
  103. Square.Transparency = 1
  104. Square.Color = Color3.new(math.random(), math.random(), math.random())
  105.  
  106. game:GetService("RunService").Stepped:connect(
  107. function()
  108. local destroyed = not part:IsDescendantOf(Work)
  109. if destroyed then
  110. Square:Remove()
  111. end
  112. if part ~= nil then
  113. Square.Position = ESPBOX(part)
  114. end
  115. local _, screen = Work.CurrentCamera:WorldToViewportPoint(part.Position)
  116. if screen then
  117. Square.Visible = true
  118. else
  119. Square.Visible = false
  120. end
  121. end
  122. )
  123. game:GetService("RunService").Stepped:connect(
  124. function()
  125. local destroyed = not part:IsDescendantOf(Work)
  126. if destroyed then
  127. return
  128. else
  129. Square.Color = Color3.fromHSV(zigzag(counter), 1, 1)
  130. counter = counter + 0.0001
  131. end
  132. end
  133. )
  134. end
  135.  
  136. for i = 1, #players do
  137. if players[i] ~= game.Players.LocalPlayer then
  138. if players[i].Character:FindFirstChild("Head") or players[i].Character:WaitForChild("Head") then
  139. ESPText(players[i].Character:FindFirstChild("Head"))
  140. ESPLine(players[i].Character:FindFirstChild("Head"))
  141. ESPSquare(players[i].Character:FindFirstChild("Head"))
  142. end
  143. players[i].CharacterAdded:connect(
  144. function(char)
  145. local hrp = char:WaitForChild("Head")
  146. ESPText(hrp)
  147. ESPLine(hrp)
  148. ESPSquare(hrp)
  149. end
  150. )
  151. end
  152. end
  153.  
  154. game:GetService("Players").PlayerAdded:Connect(
  155. function(plr)
  156. plr.CharacterAdded:connect(
  157. function(chur)
  158. wait(3)
  159. local hrp = chur:WaitForChild("Head")
  160. ESPText(hrp)
  161. ESPLine(hrp)
  162. ESPSquare(hrp)
  163. end
  164. )
  165. end
  166. )
Advertisement
RAW Paste Data Copied
Advertisement