SeanBlox

Esp Egg Downhill

Apr 23rd, 2025
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local UIS = game:GetService("UserInputService")
  4. local RunService = game:GetService("RunService")
  5.  
  6. local player = Players.LocalPlayer
  7. local char = player.Character or player.CharacterAdded:Wait()
  8. local root = char:WaitForChild("HumanoidRootPart")
  9.  
  10. -- GUI Setup
  11. local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  12. screenGui.Name = "ControlGui"
  13. screenGui.ResetOnSpawn = false
  14.  
  15. -- Main Frame
  16. local frame = Instance.new("Frame", screenGui)
  17. frame.Size = UDim2.new(0, 140, 0, 90) -- Updated size
  18. frame.Position = UDim2.new(0, 10, 0.5, -45) -- Updated position
  19. frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  20. frame.BackgroundTransparency = 0.2
  21. frame.BorderSizePixel = 0
  22. frame.Active = true
  23. frame.Draggable = true
  24.  
  25. -- Button: ESP Egg
  26. local espBtn = Instance.new("TextButton", frame)
  27. espBtn.Size = UDim2.new(1, -10, 0, 40)
  28. espBtn.Position = UDim2.new(0, 5, 0, 5)
  29. espBtn.Text = "ESP Egg"
  30. espBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  31. espBtn.TextColor3 = Color3.new(1, 1, 1)
  32. espBtn.BorderSizePixel = 0
  33.  
  34. -- Credit Label (Positioned below the ESP button)
  35. local credit = Instance.new("TextLabel", frame)
  36. credit.Size = UDim2.new(1, 0, 0, 30)
  37. credit.Position = UDim2.new(0, 0, 1, -35)
  38. credit.Text = "YT:SeanBlox"
  39. credit.BackgroundTransparency = 1
  40. credit.TextColor3 = Color3.new(1, 1, 1)
  41. credit.TextScaled = true
  42.  
  43. ----------------------------------------------------
  44. -- EGG ESP SECTION
  45. local espEnabled = false
  46. local eggESPList = {}
  47.  
  48. local function createEggESP(egg)
  49. if egg:FindFirstChild("EggESP") then return end
  50.  
  51. local box = Instance.new("BoxHandleAdornment")
  52. box.Name = "EggESP"
  53. box.Size = egg.Size
  54. box.Adornee = egg
  55. box.AlwaysOnTop = true
  56. box.ZIndex = 5
  57. box.Color3 = Color3.fromRGB(255, 255, 0)
  58. box.Transparency = 0.5
  59. box.Parent = egg
  60.  
  61. local billboard = Instance.new("BillboardGui")
  62. billboard.Name = "EggESPLabel"
  63. billboard.Size = UDim2.new(0, 50, 0, 50)
  64. billboard.AlwaysOnTop = true
  65. billboard.Adornee = egg
  66. billboard.StudsOffset = Vector3.new(0, 2, 0)
  67. billboard.Parent = egg
  68.  
  69. local label = Instance.new("TextLabel")
  70. label.Size = UDim2.new(1, 0, 1, 0)
  71. label.BackgroundTransparency = 1
  72. label.Text = "🥚"
  73. label.TextScaled = true
  74. label.TextColor3 = Color3.new(1, 1, 1)
  75. label.Parent = billboard
  76.  
  77. -- Change the color to black on touch
  78. egg.Touched:Connect(function(hit)
  79. if hit and hit.Parent == player.Character then
  80. label.TextColor3 = Color3.fromRGB(0, 0, 0) -- Change the color to black
  81. box:Destroy()
  82. billboard:Destroy()
  83. end
  84. end)
  85.  
  86. local conn
  87. conn = egg.AncestryChanged:Connect(function(_, parent)
  88. if not parent then
  89. box:Destroy()
  90. billboard:Destroy()
  91. conn:Disconnect()
  92. end
  93. end)
  94.  
  95. table.insert(eggESPList, {box = box, billboard = billboard, conn = conn, egg = egg})
  96. end
  97.  
  98. local espConnection
  99.  
  100. local function enableESP()
  101. for _, obj in pairs(workspace:GetDescendants()) do
  102. if obj:IsA("BasePart") and obj.Name:lower():find("egg") then
  103. createEggESP(obj)
  104. end
  105. end
  106. espConnection = workspace.DescendantAdded:Connect(function(obj)
  107. if espEnabled and obj:IsA("BasePart") and obj.Name:lower():find("egg") then
  108. createEggESP(obj)
  109. end
  110. end)
  111. end
  112.  
  113. local function disableESP()
  114. for _, data in pairs(eggESPList) do
  115. if data.box then data.box:Destroy() end
  116. if data.billboard then data.billboard:Destroy() end
  117. if data.conn then data.conn:Disconnect() end
  118. end
  119. eggESPList = {}
  120. if espConnection then
  121. espConnection:Disconnect()
  122. espConnection = nil
  123. end
  124. end
  125.  
  126. espBtn.MouseButton1Click:Connect(function()
  127. espEnabled = not espEnabled
  128. if espEnabled then
  129. enableESP()
  130. else
  131. disableESP()
  132. end
  133. end)
Advertisement
Add Comment
Please, Sign In to add comment