Advertisement
C-H-4-0-S

Esp

Sep 7th, 2024
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. local DepthMode = "AlwaysOnTop"
  2. local FillTransparency = 0.5
  3. local OutlineColor = Color3.fromRGB(255, 255, 255)
  4. local OutlineTransparency = 0
  5. local CoreGui = game:FindService("CoreGui")
  6. local Players = game:FindService("Players")
  7. local lp = Players.LocalPlayer
  8. local connections = {}
  9.  
  10. -- Storage for highlights
  11. local Storage = Instance.new("Folder")
  12. Storage.Parent = CoreGui
  13. Storage.Name = "Highlight_Storage"
  14.  
  15. local function RainbowEffect(Highlight)
  16. -- Rainbow cycle: smoothly transition through the color spectrum
  17. while Highlight and Highlight.Parent do
  18. for hue = 0, 1, 0.01 do
  19. Highlight.FillColor = Color3.fromHSV(hue, 1, 1) -- Cycle through colors
  20. wait(0.05) -- Speed of the color change (adjust for faster/slower effect)
  21. end
  22. end
  23. end
  24.  
  25. -- Function to highlight a player
  26. local function HighlightPlayer(plr)
  27. local Highlight = Instance.new("Highlight")
  28. Highlight.Name = plr.Name
  29.  
  30. -- Check if the player is one of the specific players
  31. if plr.Name == "ARAMPOGI_007" or plr.Name == "pvppogi_007" or plr.Name == "M4YH3M_ANT1V1RUS" then
  32. Highlight.FillColor = Color3.fromRGB(255, 165, 0) -- Orange for specific players
  33. else
  34. spawn(function() -- Apply rainbow effect to non-listed players
  35. RainbowEffect(Highlight)
  36. end)
  37. end
  38.  
  39. Highlight.DepthMode = DepthMode
  40. Highlight.FillTransparency = FillTransparency
  41. Highlight.OutlineColor = OutlineColor
  42. Highlight.OutlineTransparency = OutlineTransparency
  43. Highlight.Parent = Storage
  44.  
  45. local plrchar = plr.Character
  46. if plrchar then
  47. Highlight.Adornee = plrchar
  48. end
  49.  
  50. -- Connect CharacterAdded event to update the Adornee
  51. connections[plr] = plr.CharacterAdded:Connect(function(char)
  52. Highlight.Adornee = char
  53. end)
  54. end
  55.  
  56. -- Apply highlights when a new player joins
  57. Players.PlayerAdded:Connect(HighlightPlayer)
  58.  
  59. -- Apply highlights to all current players
  60. for _, player in next, Players:GetPlayers() do
  61. HighlightPlayer(player)
  62. end
  63.  
  64. -- Clean up when a player leaves
  65. Players.PlayerRemoving:Connect(function(plr)
  66. local plrname = plr.Name
  67. if Storage[plrname] then
  68. Storage[plrname]:Destroy()
  69. end
  70. if connections[plr] then
  71. connections[plr]:Disconnect()
  72. end
  73. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement