Advertisement
yaminameis59

Player ESP

Jan 27th, 2023
953
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. local Players = game:GetService("Players"):GetChildren()
  2. local RunService = game:GetService("RunService")
  3. local highlight = Instance.new("Highlight")
  4. highlight.Name = "Highlight"
  5.  
  6.  
  7. for i, v in pairs(Players) do
  8.     repeat wait() until v.Character
  9.     local highlightClone = highlight:Clone()
  10.     highlightClone.Adornee = v.Character
  11.     highlightClone.Parent = v.Character:FindFirstChild("HumanoidRootPart")
  12. end
  13.  
  14.  
  15. game.Players.PlayerAdded:Connect(function(player)
  16.     repeat wait() until player.Character
  17.     local highlightClone = highlight:Clone()
  18.     highlightClone.Adornee = player.Character
  19.     highlightClone.Parent = player.Character:FindFirstChild("HumanoidRootPart")
  20.     highlightClone.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  21.     highlightClone.Name = "Highlight"
  22. end)
  23.  
  24. game.Players.PlayerRemoving:Connect(function(playerRemoved)
  25.     playerRemoved.Character:FindFirstChild("HumanoidRootPart").Highlight:Destroy()
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement