Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Services
- local Players = game:GetService("Players")
- local UIS = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local player = Players.LocalPlayer
- local char = player.Character or player.CharacterAdded:Wait()
- local root = char:WaitForChild("HumanoidRootPart")
- -- GUI Setup
- local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- screenGui.Name = "ControlGui"
- screenGui.ResetOnSpawn = false
- -- Main Frame
- local frame = Instance.new("Frame", screenGui)
- frame.Size = UDim2.new(0, 140, 0, 90) -- Updated size
- frame.Position = UDim2.new(0, 10, 0.5, -45) -- Updated position
- frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- frame.BackgroundTransparency = 0.2
- frame.BorderSizePixel = 0
- frame.Active = true
- frame.Draggable = true
- -- Button: ESP Egg
- local espBtn = Instance.new("TextButton", frame)
- espBtn.Size = UDim2.new(1, -10, 0, 40)
- espBtn.Position = UDim2.new(0, 5, 0, 5)
- espBtn.Text = "ESP Egg"
- espBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- espBtn.TextColor3 = Color3.new(1, 1, 1)
- espBtn.BorderSizePixel = 0
- -- Credit Label (Positioned below the ESP button)
- local credit = Instance.new("TextLabel", frame)
- credit.Size = UDim2.new(1, 0, 0, 30)
- credit.Position = UDim2.new(0, 0, 1, -35)
- credit.Text = "YT:SeanBlox"
- credit.BackgroundTransparency = 1
- credit.TextColor3 = Color3.new(1, 1, 1)
- credit.TextScaled = true
- ----------------------------------------------------
- -- EGG ESP SECTION
- local espEnabled = false
- local eggESPList = {}
- local function createEggESP(egg)
- if egg:FindFirstChild("EggESP") then return end
- local box = Instance.new("BoxHandleAdornment")
- box.Name = "EggESP"
- box.Size = egg.Size
- box.Adornee = egg
- box.AlwaysOnTop = true
- box.ZIndex = 5
- box.Color3 = Color3.fromRGB(255, 255, 0)
- box.Transparency = 0.5
- box.Parent = egg
- local billboard = Instance.new("BillboardGui")
- billboard.Name = "EggESPLabel"
- billboard.Size = UDim2.new(0, 50, 0, 50)
- billboard.AlwaysOnTop = true
- billboard.Adornee = egg
- billboard.StudsOffset = Vector3.new(0, 2, 0)
- billboard.Parent = egg
- local label = Instance.new("TextLabel")
- label.Size = UDim2.new(1, 0, 1, 0)
- label.BackgroundTransparency = 1
- label.Text = "🥚"
- label.TextScaled = true
- label.TextColor3 = Color3.new(1, 1, 1)
- label.Parent = billboard
- -- Change the color to black on touch
- egg.Touched:Connect(function(hit)
- if hit and hit.Parent == player.Character then
- label.TextColor3 = Color3.fromRGB(0, 0, 0) -- Change the color to black
- box:Destroy()
- billboard:Destroy()
- end
- end)
- local conn
- conn = egg.AncestryChanged:Connect(function(_, parent)
- if not parent then
- box:Destroy()
- billboard:Destroy()
- conn:Disconnect()
- end
- end)
- table.insert(eggESPList, {box = box, billboard = billboard, conn = conn, egg = egg})
- end
- local espConnection
- local function enableESP()
- for _, obj in pairs(workspace:GetDescendants()) do
- if obj:IsA("BasePart") and obj.Name:lower():find("egg") then
- createEggESP(obj)
- end
- end
- espConnection = workspace.DescendantAdded:Connect(function(obj)
- if espEnabled and obj:IsA("BasePart") and obj.Name:lower():find("egg") then
- createEggESP(obj)
- end
- end)
- end
- local function disableESP()
- for _, data in pairs(eggESPList) do
- if data.box then data.box:Destroy() end
- if data.billboard then data.billboard:Destroy() end
- if data.conn then data.conn:Disconnect() end
- end
- eggESPList = {}
- if espConnection then
- espConnection:Disconnect()
- espConnection = nil
- end
- end
- espBtn.MouseButton1Click:Connect(function()
- espEnabled = not espEnabled
- if espEnabled then
- enableESP()
- else
- disableESP()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment