Advertisement
Vzurxy

nae nae nae

Oct 6th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. spawn (function()
  2. while true do
  3. wait(1)
  4. local me = game:GetService("Players").LocalPlayer.Name
  5. local target = game.Players:GetChildren()
  6. if workspace:FindFirstChild("ESP") then
  7. workspace.ESP:remove()
  8. end
  9. game.Lighting.FogEnd = 10000000
  10. function GetSizeOfObject(Obj)
  11. if Obj:IsA("BasePart") then
  12. return Obj.Size
  13. elseif Obj:IsA("Model") then
  14. return Obj:GetExtentsSize()
  15. end
  16. end
  17. local ESP = Instance.new("Folder",workspace)
  18. ESP.Name = "ESP"
  19. function CreateESPPart(BodyPart)
  20. local ESPPartparent = BodyPart
  21. local Box = Instance.new("BoxHandleAdornment")
  22. Box.Size = GetSizeOfObject(ESPPartparent) + Vector3.new(0.1, 0.1, 0.1)
  23. Box.Name = "ESPPart"
  24. Box.Adornee = ESPPartparent
  25. Box.Color3 = Color3.fromRGB(255,0,0)
  26. Box.AlwaysOnTop = true
  27. Box.ZIndex = 5
  28. Box.Transparency = 0.4
  29. Box.Parent = ESP
  30. if BodyPart.Parent.Name == game.Players.LocalPlayer.Name then
  31. Box:remove()
  32. spawn (function()
  33. while true do
  34. wait(0.1)
  35. if BodyPart ~= nil then
  36. Box:remove()
  37. end
  38. end
  39. end)
  40. end
  41. if BodyPart.Parent.Name == me then
  42. Box.Color3 = Color3.fromRGB(255,0,0)
  43. end
  44. if BodyPart.Parent.Name == target.Name then
  45. Box.Color3 = Color3.fromRGB(255,0,0)
  46. end
  47. end
  48. local player = game.Players:GetChildren()
  49. for i =1, #player do
  50. local bodyparts = player[i].Character:GetChildren()
  51. for i =1, #bodyparts do
  52. if bodyparts[i].ClassName == "Part" then
  53. CreateESPPart(bodyparts[i])
  54. end
  55. end
  56. end
  57. end
  58. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement