MaxproGlitcher

Esp test Béta

Jul 26th, 2024
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1.  
  2. local players = game:GetService("Players")
  3. local playerTable = {}
  4. getgenv().espIsEnabled = true
  5.  
  6. for _,v in pairs(players:GetPlayers()) do
  7. table.insert(playerTable, v.Name)
  8. end
  9.  
  10. for _,v in pairs(playerTable) do
  11. local char = workspace:FindFirstChild(v)
  12. if getgenv().espIsEnabled == true then
  13. for _,v in pairs(char:GetChildren()) do
  14. if v.Name == "highlight" then
  15. v:Destroy()
  16. end
  17. end
  18. local highlight = Instance.new("Highlight", char)
  19. highlight.Name = "highlight"
  20. highlight.Adornee = char
  21. highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  22. highlight.FillColor = Color3.new(255, 0, 0)
  23. highlight.FillTransparency = 0.9 -- do not change to 1 or it will become invisible
  24. highlight.OutlineColor = Color3.new(0, 255, 0)
  25. highlight.OutlineTransparency = 0
  26. highlight.Enabled = true
  27. char:FindFirstChild("Humanoid").Died:Connect(function()
  28. if getgenv().espIsEnabled == true then
  29. task.wait(players.RespawnTime + 1) -- adding 1 to make sure the character is loaded
  30. local highlight = Instance.new("Highlight", char)
  31. highlight.Name = "highlight"
  32. highlight.Adornee = char
  33. highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  34. highlight.FillColor = Color3.new(255, 0, 0)
  35. highlight.FillTransparency = 0.9 -- do not change to 1 or it will become invisible
  36. highlight.OutlineColor = Color3.new(0, 255, 0)
  37. highlight.OutlineTransparency = 0
  38. highlight.Enabled = true
  39. end
  40. end)
  41. else
  42. for _,v in pairs(char:GetChildren()) do
  43. if v.Name == "highlight" then
  44. v:Destroy()
  45. end
  46. end
  47. end
  48. end
  49.  
  50. players.PlayerAdded:Connect(function(player)
  51. if getgenv().espIsEnabled == true then
  52. local char = player.Character
  53. local highlight = Instance.new("Highlight", char)
  54. highlight.Name = "highlight"
  55. highlight.Adornee = char
  56. highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  57. highlight.FillColor = Color3.new(255, 0, 0)
  58. highlight.FillTransparency = 0.9 -- do not change to 1 or it will become invisible
  59. highlight.OutlineColor = Color3.new(0, 255, 0)
  60. highlight.OutlineTransparency = 0
  61. highlight.Enabled = true
  62. end
  63. end)
Advertisement
Add Comment
Please, Sign In to add comment