Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spawn (function()
- while true do
- wait(1)
- local me = game:GetService("Players").LocalPlayer.Name
- local target = game.Players:GetChildren()
- if workspace:FindFirstChild("ESP") then
- workspace.ESP:remove()
- end
- game.Lighting.FogEnd = 10000000
- function GetSizeOfObject(Obj)
- if Obj:IsA("BasePart") then
- return Obj.Size
- elseif Obj:IsA("Model") then
- return Obj:GetExtentsSize()
- end
- end
- local ESP = Instance.new("Folder",workspace)
- ESP.Name = "ESP"
- function CreateESPPart(BodyPart)
- local ESPPartparent = BodyPart
- local Box = Instance.new("BoxHandleAdornment")
- Box.Size = GetSizeOfObject(ESPPartparent) + Vector3.new(0.1, 0.1, 0.1)
- Box.Name = "ESPPart"
- Box.Adornee = ESPPartparent
- Box.Color3 = Color3.fromRGB(255,0,0)
- Box.AlwaysOnTop = true
- Box.ZIndex = 5
- Box.Transparency = 0.4
- Box.Parent = ESP
- if BodyPart.Parent.Name == game.Players.LocalPlayer.Name then
- Box:remove()
- spawn (function()
- while true do
- wait(0.1)
- if BodyPart ~= nil then
- Box:remove()
- end
- end
- end)
- end
- if BodyPart.Parent.Name == me then
- Box.Color3 = Color3.fromRGB(255,0,0)
- end
- if BodyPart.Parent.Name == target.Name then
- Box.Color3 = Color3.fromRGB(255,0,0)
- end
- end
- local player = game.Players:GetChildren()
- for i =1, #player do
- local bodyparts = player[i].Character:GetChildren()
- for i =1, #bodyparts do
- if bodyparts[i].ClassName == "Part" then
- CreateESPPart(bodyparts[i])
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement