Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Services
- local Players = game:GetService'Players';
- local RunService = game:GetService'RunService';
- local Tween = game:GetService'TweenService';
- local UIS = game:GetService'UserInputService';
- --Client
- local Player = Players.LocalPlayer;
- local Mouse = Player:GetMouse();
- --Settings
- --ESP
- local ShowInvisibleParts = true; --Will not xray invisible parts.
- local TeamBased = true; --Will turn white all your teammates.
- --X-Ray
- local MaxXRayParts = 30; --Range of the xray should be.
- local XRayDuration = 3; --Duration of the x-ray, if the toggle is disabled.
- local ToggleXRay = true; --Will clear the x-ray after pressing the XRayToggleKey.
- local XRayToggleKey = Enum.KeyCode.KeypadFive;
- local XRayOn = _G.XRay and true or false;
- local XRayRange = 1000;
- --Setup
- if _G.ESPTracker then
- for i,v in pairs(_G.ESPTracker) do
- for ii,vv in pairs(v.Functions or {}) do
- vv:Disconnect();
- end
- for ii,vv in pairs(v.Parts or {}) do
- vv:Destroy();
- end
- end
- end
- _G.XRay = _G.XRay or {};
- _G.ESPTracker = {};
- local Data = _G.ESPTracker;
- --Functions
- function TrackHum(vHRP)
- if vHRP then
- local InvisibruParts = {}
- repeat wait(.4) until #vHRP.Parent:GetChildren() > 4
- local Hum = vHRP.Parent:FindFirstChild'Humanoid';
- if Hum then
- for ii,vv in pairs(vHRP.Parent:GetChildren()) do
- if vv:IsA'BasePart' then
- local Box = Instance.new('BoxHandleAdornment', vHRP.Parent);
- Box.Adornee = vv;
- Box.Size = vv.Size-Vector3.new(.1,.1,.1) or Vector3.new(.4,.4,.4);
- Box.Transparency = (vv.Transparency < 1 or ShowInvisibleParts) and .75 or 1;
- Box.AlwaysOnTop = true;
- Box.ZIndex = 1;
- Box.Color3 = Color3.new(1,0,0)
- InvisibruParts[#InvisibruParts+1] = Box;
- end
- end
- end
- end
- end
- --Enabling
- for i,v in pairs(workspace.ZombieGroup:GetChildren()) do
- TrackHum(v.PrimaryPart);
- end
- workspace.ZombieGroup.ChildAdded:Connect(function(v)
- for i,v in pairs(workspace.ZombieGroup:GetChildren()) do
- TrackHum(v.PrimaryPart);
- end
- end)
- --Client Functions
- warn'Loaded'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement