Advertisement
Guest User

Operation Scorpion (Paid Access) (ESP2)

a guest
Apr 22nd, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. location = Instance.new("Folder",game.CoreGui)
  2. TRANSPARENCY = 0.5
  3.  
  4.  
  5. function checkPart(obj) if (obj:IsA("Part") or obj:IsA("MeshPart")) and obj.Name~="HumanoidRootPart" then return true end end --//Check if the Part is suitable
  6.  
  7. function createESP(obj)
  8. local surface = Instance.new("BoxHandleAdornment",location)
  9. surface.Adornee = obj --//Creates the SurfaceGui
  10. surface.AlwaysOnTop = true
  11. surface.ZIndex = 0
  12. surface.Transparency = TRANSPARENCY
  13. surface.Size = Vector3.new(obj.Size.X,obj.Size.Y,obj.Size.Z)
  14.  
  15. if game.Players[obj.Parent.Name].Team == game.Players.LocalPlayer.Team then
  16. surface.Color3 = Color3.fromRGB(0,255,255) --//If in same Team
  17. else
  18. surface.Color3 = Color3.fromRGB(255,0,0)
  19. end
  20.  
  21. end
  22.  
  23. for i,plr in pairs(game.Workspace.Characters:GetChildren())do
  24. for i,v in pairs(plr:GetChildren())do
  25. if checkPart(v) then
  26. createESP(v)
  27. end
  28. end
  29. end
  30.  
  31. game.Workspace.Characters.ChildAdded:Connect(function()
  32. location:ClearAllChildren()
  33. for i,plr in pairs(game.Workspace.Characters:GetChildren())do
  34. for i,v in pairs(plr:GetChildren())do
  35. if checkPart(v) then
  36. createESP(v)
  37. end
  38. end
  39. end
  40. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement