local gui = Instance.new("ScreenGui") gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local lastFieldObj = nil -- MAIN MENU local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 480, 0, 400) mainFrame.Position = UDim2.new(0, 95, 0, 65) mainFrame.BackgroundColor3 = Color3.fromRGB(246,242,203) mainFrame.Active = true mainFrame.Draggable = true mainFrame.ClipsDescendants = true mainFrame.Parent = gui local mainC = Instance.new("UICorner"); mainC.CornerRadius = UDim.new(0,32); mainC.Parent = mainFrame local padMain = Instance.new("UIPadding") padMain.PaddingLeft = UDim.new(0, 18) padMain.PaddingRight = UDim.new(0, 18) padMain.PaddingTop = UDim.new(0, 19) padMain.PaddingBottom = UDim.new(0, 10) padMain.Parent = mainFrame local logo = Instance.new("ImageLabel") logo.Size = UDim2.new(0,50,0,50) logo.Position = UDim2.new(0,9,0,2) logo.BackgroundTransparency = 1 logo.Image = "rbxassetid://5116877289" logo.Parent = mainFrame local label = Instance.new("TextLabel") label.Text = "BeeMasterX — Danylthar & DarkLight_Lines" label.Size = UDim2.new(1, -72, 0, 34) label.Position = UDim2.new(0,62,0,5) label.BackgroundTransparency = 1 label.TextColor3 = Color3.fromRGB(80,68,0) label.TextWrapped = true label.Font = Enum.Font.Cartoon label.TextSize = 22 label.Parent = mainFrame local about = Instance.new("TextLabel") about.Text = "Ultimate script | Auto Farm, Auto Dig, Teleport | Style & tech perfection!" about.Size = UDim2.new(1,-18,0,27) about.Position = UDim2.new(0,9,0,44) about.BackgroundTransparency = 1 about.TextColor3 = Color3.fromRGB(115,57,0) about.Font = Enum.Font.Cartoon about.TextSize = 15 about.TextWrapped = true about.Parent = mainFrame local decor = Instance.new("Frame") decor.Size = UDim2.new(1,0,0,6) decor.Position = UDim2.new(0,0,0,73) decor.BackgroundColor3 = Color3.fromRGB(255,209,67) decor.Parent = mainFrame local decorC = Instance.new("UICorner"); decorC.CornerRadius = UDim.new(1,0); decorC.Parent = decor -- SECTION BUTTONS local sectionInfo = { {name = "Teleports", color=Color3.fromRGB(255,235,145)}, {name = "Auto Farm", color=Color3.fromRGB(229,253,203)}, } local popups = {} for i, sec in ipairs(sectionInfo) do local btn = Instance.new("TextButton") btn.Size = UDim2.new(0,298,0,39) btn.Position = UDim2.new(0,92,0,94 + (i-1)*62) btn.Text = sec.name btn.Parent = mainFrame btn.BackgroundColor3 = sec.color btn.TextColor3 = Color3.fromRGB(80,63,0) btn.Font = Enum.Font.Cartoon btn.TextSize = 19 btn.BorderSizePixel = 0 local c = Instance.new("UICorner"); c.CornerRadius = UDim.new(0,10); c.Parent = btn btn.MouseButton1Click:Connect(function() if popups[sec.name] and popups[sec.name].Parent then return end local frWidth, frHeight = 410, sec.name == "Teleports" and 410 or 250 local f = Instance.new("Frame") f.Size = UDim2.new(0,frWidth,0,frHeight) f.Position = UDim2.new(0,mainFrame.Position.X.Offset+mainFrame.Size.X.Offset+14,0,mainFrame.Position.Y.Offset+24) f.BackgroundColor3 = sec.color f.Active = true f.Draggable = true f.ClipsDescendants = true f.Parent = gui popups[sec.name] = f local popC = Instance.new("UICorner"); popC.CornerRadius = UDim.new(0,12); popC.Parent = f local pad = Instance.new("UIPadding") pad.PaddingLeft = UDim.new(0,14) pad.PaddingRight = UDim.new(0,14) pad.PaddingTop = UDim.new(0,12) pad.PaddingBottom = UDim.new(0,12) pad.Parent = f local hdr = Instance.new("TextLabel") hdr.Size = UDim2.new(1,-46,0,28) hdr.Position = UDim2.new(0,23,0,0) hdr.BackgroundTransparency = 1 hdr.Text = sec.name .. " Section" hdr.Font = Enum.Font.Cartoon hdr.TextColor3 = Color3.fromRGB(70,50,0) hdr.TextSize = 18 hdr.TextWrapped = true hdr.Parent = f local closeSec = Instance.new("TextButton") closeSec.Size = UDim2.new(0,30,0,30) closeSec.Position = UDim2.new(1, -36, 0, 4) closeSec.Text = "✖" closeSec.Font = Enum.Font.Cartoon closeSec.TextColor3 = Color3.fromRGB(140,46,48) closeSec.BackgroundColor3 = Color3.fromRGB(252,238,90) closeSec.BorderSizePixel = 0 closeSec.Parent = f local popCC = Instance.new("UICorner"); popCC.CornerRadius = UDim.new(1,0); popCC.Parent = closeSec closeSec.MouseButton1Click:Connect(function() f:Destroy() popups[sec.name] = nil end) if sec.name == "Teleports" then -- ВСЕ поля с прокруткой! Кнопка всегда внизу! local scroll = Instance.new("ScrollingFrame") scroll.Size = UDim2.new(1,-16,0,296) scroll.Position = UDim2.new(0,8,0,36) local flowerZones = game.Workspace:FindFirstChild("FlowerZones") local fields = {} if flowerZones then for _,v in ipairs(flowerZones:GetChildren()) do table.insert(fields, v.Name) end end scroll.CanvasSize = UDim2.new(0,0,0,#fields*28+22) scroll.ScrollBarThickness = 7 scroll.BackgroundTransparency = 1 scroll.ClipsDescendants = true scroll.Parent = f local currentField = nil local fieldBtns = {} for j,fname in ipairs(fields) do local fb = Instance.new("TextButton") fb.Size = UDim2.new(0, 180, 0, 22) fb.Position = UDim2.new(0,14, 0, 4 + (j-1)*26) fb.Text = "🍯 " .. fname fb.Parent = scroll fb.BackgroundColor3 = Color3.fromRGB(255,252,205) fb.TextColor3 = Color3.fromRGB(100,54,0) fb.Font = Enum.Font.Cartoon fb.TextSize = 14 fb.TextWrapped = true fb.BorderSizePixel = 0 local fbc = Instance.new("UICorner"); fbc.CornerRadius = UDim.new(0,7); fbc.Parent = fb fb.MouseButton1Click:Connect(function() if currentField then fieldBtns[currentField].BackgroundColor3 = Color3.fromRGB(255,252,205) end fb.BackgroundColor3 = Color3.fromRGB(255,221,77) currentField = fname end) fieldBtns[fname] = fb end -- Кнопка всегда ВНЕ scroll, под ним! local tpBtn = Instance.new("TextButton") tpBtn.Size = UDim2.new(0, 230, 0, 28) tpBtn.Position = UDim2.new(0,90,0,336) tpBtn.Text = "Teleport to field" tpBtn.Parent = f tpBtn.BackgroundColor3 = Color3.fromRGB(255,215,70) tpBtn.TextColor3 = Color3.fromRGB(81,44,13) tpBtn.Font = Enum.Font.Cartoon tpBtn.TextSize = 15 tpBtn.BorderSizePixel = 0 local uictp = Instance.new("UICorner"); uictp.CornerRadius = UDim.new(0,8); uictp.Parent = tpBtn tpBtn.MouseButton1Click:Connect(function() if not currentField then tpBtn.BackgroundColor3 = Color3.fromRGB(240,80,80) tpBtn.Text = "Select field!" wait(1) tpBtn.BackgroundColor3 = Color3.fromRGB(255,215,70) tpBtn.Text = "Teleport to field" return end local fieldObj = nil if flowerZones then for _, v in ipairs(flowerZones:GetChildren()) do if string.lower(v.Name) == string.lower(currentField) then fieldObj = v; break end end end if fieldObj then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(fieldObj.Position) lastFieldObj = fieldObj end if currentField then fieldBtns[currentField].BackgroundColor3 = Color3.fromRGB(255,252,205) end currentField = nil end) else -- AUTO FARM (две кнопки!) local farmON, digON = false, false local fStatus = Instance.new("TextLabel") fStatus.Size = UDim2.new(1,-28,0,24) fStatus.Position = UDim2.new(0,14,0,46) fStatus.TextColor3 = Color3.fromRGB(68,117,41) fStatus.Text = "Status: OFF" fStatus.BackgroundTransparency = 1 fStatus.Font = Enum.Font.Cartoon fStatus.TextSize = 15 fStatus.Parent = f local farmBtn = Instance.new("TextButton") farmBtn.Size = UDim2.new(0,240,0,36) farmBtn.Position = UDim2.new(0,30,0,85) farmBtn.Text = "Auto Farm: OFF" farmBtn.Parent = f farmBtn.BackgroundColor3 = Color3.fromRGB(117,213,108) farmBtn.TextColor3 = Color3.fromRGB(225,255,235) farmBtn.Font = Enum.Font.Cartoon farmBtn.TextSize = 16 farmBtn.BorderSizePixel = 0 local fbc = Instance.new("UICorner"); fbc.CornerRadius = UDim.new(0,9); fbc.Parent = farmBtn local digBtn = Instance.new("TextButton") digBtn.Size = UDim2.new(0,240,0,34) digBtn.Position = UDim2.new(0,30,0,138) digBtn.Text = "Auto Dig: OFF" digBtn.Parent = f digBtn.BackgroundColor3 = Color3.fromRGB(225,245,140) digBtn.TextColor3 = Color3.fromRGB(130,92,20) digBtn.Font = Enum.Font.Cartoon digBtn.TextSize = 16 digBtn.BorderSizePixel = 0 local dbc = Instance.new("UICorner"); dbc.CornerRadius = UDim.new(0,9); dbc.Parent = digBtn function isInsideField(fieldObj) if not fieldObj or not fieldObj.Position then return false end local pos = game.Players.LocalPlayer.Character.HumanoidRootPart.Position local center = fieldObj.Position local size = fieldObj.Size local buffer = 7 local maxDistX = size.X/2 + buffer local maxDistZ = size.Z/2 + buffer return math.abs(pos.X - center.X) <= maxDistX and math.abs(pos.Z - center.Z) <= maxDistZ end function getBestToken(fieldObj, mode) local plrPos = game.Players.LocalPlayer.Character.HumanoidRootPart.Position local best, bestDist = nil, math.huge for _, token in ipairs(workspace.Collectibles:GetChildren()) do if token and token.Position then local dx = math.abs(token.Position.X - fieldObj.Position.X) local dz = math.abs(token.Position.Z - fieldObj.Position.Z) local nameLow = token.Name:lower() if dx < fieldObj.Size.X/2 + 7 and dz < fieldObj.Size.Z/2 + 7 then if mode == "regular" then if not nameLow:find("ticket") and not nameLow:find("link") then local dist = (token.Position - plrPos).Magnitude if dist < bestDist then bestDist = dist; best = token end end end end end end return best end local farmRun, digRun = false, false farmBtn.MouseButton1Click:Connect(function() if not lastFieldObj then farmBtn.Text = "No field!" farmBtn.BackgroundColor3 = Color3.fromRGB(240,80,80) wait(1) farmBtn.Text = "Auto Farm: OFF" farmBtn.BackgroundColor3 = Color3.fromRGB(117,213,108) return end farmON = not farmON farmBtn.Text = farmON and "Auto Farm: ON" or "Auto Farm: OFF" farmBtn.BackgroundColor3 = farmON and Color3.fromRGB(117,235,88) or Color3.fromRGB(117,213,108) fStatus.Text = farmON and "Auto Farm ON" or "Auto Farm OFF" if farmON then farmRun = true spawn(function() while farmON and farmRun do local fieldObj = lastFieldObj if not isInsideField(fieldObj) then farmRun=false break end local t = getBestToken(fieldObj,"regular") if t and t.Position then pcall(function() game.Players.LocalPlayer.Character.Humanoid:MoveTo(t.Position + Vector3.new(0,2,0)) end) else local size = fieldObj.Size local pos = fieldObj.Position local x = pos.X + math.random(-size.X/2 + 13, size.X/2 - 13) local z = pos.Z + math.random(-size.Z/2 + 13, size.Z/2 - 13) local newPos = Vector3.new(x, pos.Y + 2, z) pcall(function() game.Players.LocalPlayer.Character.Humanoid:MoveTo(newPos) end) end wait(0.15) end farmRun = false end) else farmRun=false end end) digBtn.MouseButton1Click:Connect(function() digON = not digON digBtn.Text = digON and "Auto Dig: ON" or "Auto Dig: OFF" digBtn.BackgroundColor3 = digON and Color3.fromRGB(255,228,80) or Color3.fromRGB(225,245,140) fStatus.Text = digON and "Auto Dig ON" or "Auto Dig OFF" if digON then digRun = true spawn(function() while digON and digRun do pcall(function() local vim = game:GetService("VirtualInputManager") vim:SendMouseButtonEvent( workspace.CurrentCamera.ViewportSize.X/2, workspace.CurrentCamera.ViewportSize.Y/2, 0, true, game, 1 ) wait(0.03) vim:SendMouseButtonEvent( workspace.CurrentCamera.ViewportSize.X/2, workspace.CurrentCamera.ViewportSize.Y/2, 0, false, game, 1 ) end) wait(0.17) end digRun = false end) else digRun=false end end) end end) end local closeBtn = Instance.new("TextButton") closeBtn.Size = UDim2.new(0, 32, 0, 32) closeBtn.Position = UDim2.new(1, -38, 0, 10) closeBtn.Text = "✖" closeBtn.TextColor3 = Color3.fromRGB(92, 48, 32) closeBtn.BackgroundColor3 = Color3.fromRGB(255,196,57) closeBtn.BorderSizePixel = 0 closeBtn.Parent = mainFrame local UICornerc2 = Instance.new("UICorner") UICornerc2.CornerRadius = UDim.new(1,0) UICornerc2.Parent = closeBtn closeBtn.MouseButton1Click:Connect(function() gui:Destroy() end) game.StarterGui:SetCore("SendNotification", { Title = "BeeMasterX | Danylthar & DarkLight_Lines", Text = "Menu with all buttons, scroll, nothing disappears!" })