Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spawn (function()
- while true do
- wait(1)
- local assassin = workspace.assassin.pname.Value
- local target = workspace.target.pname.Value
- 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(0,0,255)
- 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 == target then
- Box.Color3 = Color3.fromRGB(0,255,0)
- end
- if BodyPart.Parent.Name == assassin 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
- local at0 = Instance.new("Attachment")
- at0.Parent = game.Players.LocalPlayer.Character.Head
- local at1 = Instance.new("Attachment")
- at1.Parent = workspace:FindFirstChild(assassin).Head
- local beam0 = Instance.new("Beam")
- beam0.Attachment0 = at0
- beam0.Attachment1 = at1
- beam0.Color = ColorSequence.new(Color3.new(1,0,0),Color3.new(1,0,0))
- beam0.Parent = workspace.ESP
- local at2 = Instance.new("Attachment")
- at2.Parent = game.Players.LocalPlayer.Character.Head
- local at3 = Instance.new("Attachment")
- at3.Parent = workspace:FindFirstChild(target).Head
- local beam1 = Instance.new("Beam")
- beam1.Attachment0 = at2
- beam1.Attachment1 = at3
- beam1.Color = ColorSequence.new(Color3.new(0,1,0),Color3.new(0,1,0))
- beam1.Parent = workspace.ESP
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement