Advertisement
pa1nx9

Grand Piece Online ARTIFACT ESP OCTOBER 2021

Oct 3rd, 2021
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. function WTS(part)
  2. local screen = workspace.CurrentCamera:WorldToViewportPoint(part.Position)
  3. return Vector2.new(screen.x, screen.y)
  4. end
  5.  
  6. function ESP(part, text, color)
  7. local name = Drawing.new("Text")
  8. name.Text = text
  9. name.Color = color
  10. name.Position = WTS(part)
  11. name.Size = 20.0
  12. name.Outline = true
  13. name.Center = true
  14. name.Visible = true
  15.  
  16. game:GetService("RunService").Stepped:connect(function()
  17. pcall(function()
  18. local destroyed = not part:IsDescendantOf(workspace)
  19. if destroyed and name ~= nil then
  20. name:Remove()
  21. end
  22. if part ~= nil then
  23. name.Position = WTS(part)
  24. end
  25. local _, screen = workspace.CurrentCamera:WorldToViewportPoint(part.Position)
  26. if screen then
  27. name.Visible = true
  28. else
  29. name.Visible = false
  30. end
  31. end)
  32. end)
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement