Advertisement
SinisterMemories

PF ESP

Apr 3rd, 2020
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.31 KB | None | 0 0
  1. -- [[ Service Declarations ]] --
  2.  
  3. local workspace = game:GetService("Workspace")
  4. local players = game:GetService("Players")
  5.  
  6. -- [[ Variable Declarations ]] --
  7.  
  8. --// Client
  9.  
  10. local client = players.LocalPlayer
  11.  
  12. --// Module Declarations
  13.  
  14. local drawing3d = loadstring(game:HttpGet("https://pastebin.com/raw/tr16Xk20"))()
  15.  
  16. --// Collection
  17.  
  18. local alivePlayersFolder = workspace.Players
  19. local phantoms = alivePlayersFolder.Phantoms
  20. local ghosts = alivePlayersFolder.Ghosts
  21.  
  22. -- [[ Function Declarations ]] --
  23.  
  24. local function startESP(playerModel)
  25.     if (not playerModel:IsA("Model")) then return end
  26.     if (playerModel.Name == client.Name) then return end
  27.  
  28.     local children = playerModel:GetChildren()
  29.  
  30.     for i, child in pairs(children) do
  31.         if (child.ClassName == "Part") then
  32.             --// local newBox = drawing3d.new("AttachedBox")
  33.             local newBox = Drawing3d.new("AttachedBox")
  34.  
  35.             newBox.Visible = true
  36.             newBox.AlwaysOnTop = true
  37.             newBox.Instance = child
  38.         end
  39.     end
  40. end
  41.  
  42. -- [[ Init ]] --
  43.  
  44. do
  45.     --// Start ESP
  46.  
  47.     local alivePlayers = alivePlayersFolder:GetDescendants()
  48.  
  49.     for i, player in pairs(alivePlayers) do
  50.         startESP(player)
  51.     end
  52.  
  53.     phantoms.ChildAdded:Connect(startESP)
  54.     ghosts.ChildAdded:Connect(startESP)
  55. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement