Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. --Services
  2. local Players = game:GetService'Players';
  3. local RunService = game:GetService'RunService';
  4. local Tween = game:GetService'TweenService';
  5. local UIS = game:GetService'UserInputService';
  6.  
  7. --Client
  8. local Player = Players.LocalPlayer;
  9. local Mouse = Player:GetMouse();
  10.  
  11. --Settings
  12. --ESP
  13. local ShowInvisibleParts = true; --Will not xray invisible parts.
  14. local TeamBased = true; --Will turn white all your teammates.
  15.  
  16. --X-Ray
  17. local MaxXRayParts = 30; --Range of the xray should be.
  18. local XRayDuration = 3; --Duration of the x-ray, if the toggle is disabled.
  19. local ToggleXRay = true; --Will clear the x-ray after pressing the XRayToggleKey.
  20. local XRayToggleKey = Enum.KeyCode.KeypadFive;
  21. local XRayOn = _G.XRay and true or false;
  22. local XRayRange = 1000;
  23.  
  24. --Setup
  25. if _G.ESPTracker then
  26. for i,v in pairs(_G.ESPTracker) do
  27. for ii,vv in pairs(v.Functions or {}) do
  28. vv:Disconnect();
  29. end
  30. for ii,vv in pairs(v.Parts or {}) do
  31. vv:Destroy();
  32. end
  33. end
  34. end
  35.  
  36. _G.XRay = _G.XRay or {};
  37. _G.ESPTracker = {};
  38. local Data = _G.ESPTracker;
  39.  
  40. --Functions
  41. function TrackHum(vHRP)
  42. if vHRP then
  43. local InvisibruParts = {}
  44. repeat wait(.4) until #vHRP.Parent:GetChildren() > 4
  45.  
  46. local Hum = vHRP.Parent:FindFirstChild'Humanoid';
  47. if Hum then
  48. for ii,vv in pairs(vHRP.Parent:GetChildren()) do
  49. if vv:IsA'BasePart' then
  50. local Box = Instance.new('BoxHandleAdornment', vHRP.Parent);
  51. Box.Adornee = vv;
  52. Box.Size = vv.Size-Vector3.new(.1,.1,.1) or Vector3.new(.4,.4,.4);
  53. Box.Transparency = (vv.Transparency < 1 or ShowInvisibleParts) and .75 or 1;
  54. Box.AlwaysOnTop = true;
  55. Box.ZIndex = 1;
  56.  
  57. Box.Color3 = Color3.new(1,0,0)
  58.  
  59. InvisibruParts[#InvisibruParts+1] = Box;
  60.  
  61. end
  62. end
  63. end
  64. end
  65. end
  66.  
  67. --Enabling
  68. for i,v in pairs(workspace.ZombieGroup:GetChildren()) do
  69. TrackHum(v.PrimaryPart);
  70. end
  71.  
  72. workspace.ZombieGroup.ChildAdded:Connect(function(v)
  73. for i,v in pairs(workspace.ZombieGroup:GetChildren()) do
  74. TrackHum(v.PrimaryPart);
  75. end
  76. end)
  77.  
  78. --Client Functions
  79.  
  80. warn'Loaded'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement