Advertisement
xvc200

a simple esp script

Feb 5th, 2025
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. local function addESP(player)
  2. if player == game.Players.LocalPlayer then return end
  3.  
  4. local function applyHighlight(character)
  5. if character:FindFirstChild("Highlight") then return end
  6.  
  7. local esp = Instance.new("Highlight")
  8. esp.Name = "Highlight"
  9. esp.FillColor = Color3.new(1, 0, 0)
  10. esp.OutlineColor = Color3.new(1, 1, 1)
  11. esp.FillTransparency = 0.5
  12. esp.OutlineTransparency = 0
  13. esp.Parent = character
  14. end
  15.  
  16. if player.Character then
  17. applyHighlight(player.Character)
  18. end
  19.  
  20.  
  21. player.CharacterAdded:Connect(function(character)
  22. applyHighlight(character)
  23. end)
  24. end
  25.  
  26.  
  27. for _, player in ipairs(game.Players:GetPlayers()) do
  28. addESP(player)
  29. end
  30.  
  31.  
  32. game.Players.PlayerAdded:Connect(function(player)
  33. addESP(player)
  34. end)
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement