local Players=game:GetService("Players") local UserInputService=game:GetService("UserInputService") local player=Players.LocalPlayer local playerGui=player:WaitForChild("PlayerGui") local old=playerGui:FindFirstChild("EggGui") if old then old:Destroy() end local C={ panel=Color3.fromRGB(15,15,25), topBar=Color3.fromRGB(20,20,80), border=Color3.fromRGB(50,50,180), btn=Color3.fromRGB(30,30,90), btnGreen=Color3.fromRGB(30,120,50), btnRed=Color3.fromRGB(120,20,20), text=Color3.fromRGB(220,220,255), textDim=Color3.fromRGB(120,120,180), } local collecting=false local minimized=false local function collectEggs() if collecting then return end collecting=true task.spawn(function() local char=player.Character local hrp=char and char:FindFirstChild("HumanoidRootPart") if not hrp then collecting=false return end local eggsFolder=workspace:FindFirstChild("Eggs") if not eggsFolder then print("Eggs folder not found!") collecting=false return end local originalCF=hrp.CFrame local collected=0 local total=0 for _,egg in ipairs(eggsFolder:GetChildren()) do if egg.Name=="Egg" then total=total+1 end end for _,egg in ipairs(eggsFolder:GetChildren()) do if egg.Name=="Egg" then local cd=egg:FindFirstChildOfClass("ClickDetector") if cd then -- Teleport to egg hrp.CFrame=egg.CFrame*CFrame.new(0,0,-2) task.wait(0.2) -- Click it pcall(function() fireclickdetector(cd) end) task.wait(0.2) collected=collected+1 statusLbl.Text="🥚 Collecting "..collected.."/"..total end end end -- Teleport back hrp.CFrame=originalCF statusLbl.Text="✅ Done! Got "..collected.."/"..total.." eggs!" collectBtn.BackgroundColor3=C.btnGreen collectBtn.Text="🥚 Collect All Eggs" collecting=false end) end local sg=Instance.new("ScreenGui",playerGui) sg.Name="EggGui" sg.ResetOnSpawn=false sg.IgnoreGuiInset=true local panel=Instance.new("Frame",sg) panel.Size=UDim2.new(0,240,0,120) panel.Position=UDim2.new(0.5,-120,0,60) panel.BackgroundColor3=C.panel panel.BorderSizePixel=0 Instance.new("UICorner",panel).CornerRadius=UDim.new(0,12) Instance.new("UIStroke",panel).Color=C.border local ptb=Instance.new("Frame",panel) ptb.Size=UDim2.new(1,0,0,34) ptb.BackgroundColor3=C.topBar ptb.BorderSizePixel=0 Instance.new("UICorner",ptb).CornerRadius=UDim.new(0,12) local ptbFix=Instance.new("Frame",ptb) ptbFix.Size=UDim2.new(1,0,0.5,0) ptbFix.Position=UDim2.new(0,0,0.5,0) ptbFix.BackgroundColor3=C.topBar ptbFix.BorderSizePixel=0 local ptl=Instance.new("TextLabel",ptb) ptl.Text="🥚 EGG COLLECTOR" ptl.Size=UDim2.new(1,-80,1,0) ptl.Position=UDim2.new(0,10,0,0) ptl.BackgroundTransparency=1 ptl.TextColor3=C.text ptl.Font=Enum.Font.GothamBold ptl.TextSize=11 ptl.TextXAlignment=Enum.TextXAlignment.Left local minimizeBtn=Instance.new("TextButton",ptb) minimizeBtn.Size=UDim2.new(0,22,0,22) minimizeBtn.Position=UDim2.new(1,-52,0.5,-11) minimizeBtn.BackgroundColor3=Color3.fromRGB(40,40,100) minimizeBtn.Text="-" minimizeBtn.TextColor3=Color3.fromRGB(180,180,255) minimizeBtn.Font=Enum.Font.GothamBold minimizeBtn.TextSize=14 minimizeBtn.BorderSizePixel=0 Instance.new("UICorner",minimizeBtn).CornerRadius=UDim.new(0,5) local closeBtn=Instance.new("TextButton",ptb) closeBtn.Size=UDim2.new(0,22,0,22) closeBtn.Position=UDim2.new(1,-26,0.5,-11) closeBtn.BackgroundColor3=Color3.fromRGB(80,10,10) closeBtn.Text="X" closeBtn.TextColor3=Color3.fromRGB(255,120,120) closeBtn.Font=Enum.Font.GothamBold closeBtn.TextSize=10 closeBtn.BorderSizePixel=0 Instance.new("UICorner",closeBtn).CornerRadius=UDim.new(0,5) statusLbl=Instance.new("TextLabel",panel) statusLbl.Size=UDim2.new(1,-16,0,16) statusLbl.Position=UDim2.new(0,8,0,40) statusLbl.BackgroundTransparency=1 statusLbl.Text="⚪ Ready to collect eggs!" statusLbl.TextColor3=C.textDim statusLbl.Font=Enum.Font.GothamBold statusLbl.TextSize=10 statusLbl.TextXAlignment=Enum.TextXAlignment.Left collectBtn=Instance.new("TextButton",panel) collectBtn.Size=UDim2.new(1,-16,0,34) collectBtn.Position=UDim2.new(0,8,0,60) collectBtn.BackgroundColor3=C.btnGreen collectBtn.Text="🥚 Collect All Eggs" collectBtn.TextColor3=Color3.fromRGB(180,255,180) collectBtn.Font=Enum.Font.GothamBold collectBtn.TextSize=13 collectBtn.BorderSizePixel=0 Instance.new("UICorner",collectBtn).CornerRadius=UDim.new(0,8) Instance.new("UIStroke",collectBtn).Color=Color3.fromRGB(50,180,50) collectBtn.MouseButton1Click:Connect(function() if collecting then return end collectBtn.Text="⏳ Collecting..." collectBtn.BackgroundColor3=C.btnRed statusLbl.Text="🥚 Starting collection..." statusLbl.TextColor3=Color3.fromRGB(80,220,100) collectEggs() end) minimizeBtn.MouseButton1Click:Connect(function() minimized=not minimized if minimized then statusLbl.Visible=false collectBtn.Visible=false panel.Size=UDim2.new(0,240,0,34) minimizeBtn.Text="+" else statusLbl.Visible=true collectBtn.Visible=true panel.Size=UDim2.new(0,240,0,120) minimizeBtn.Text="-" end end) closeBtn.MouseButton1Click:Connect(function() sg:Destroy() end) local dragInput,dragStart,startPos local dragging=false local function update(input) local delta=input.Position-dragStart panel.Position=UDim2.new(startPos.X.Scale,startPos.X.Offset+delta.X,startPos.Y.Scale,startPos.Y.Offset+delta.Y) end ptb.InputBegan:Connect(function(input) if input.UserInputType==Enum.UserInputType.MouseButton1 or input.UserInputType==Enum.UserInputType.Touch then dragging=true dragStart=input.Position startPos=panel.Position input.Changed:Connect(function() if input.UserInputState==Enum.UserInputState.End then dragging=false end end) end end) ptb.InputChanged:Connect(function(input) if input.UserInputType==Enum.UserInputType.MouseMovement or input.UserInputType==Enum.UserInputType.Touch then dragInput=input end end) UserInputService.InputChanged:Connect(function(input) if input==dragInput and dragging then update(input) end end) print("Egg Collector loaded!")