local player = game.Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "InvestCenter" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 580, 0, 460) -- Slightly taller mainFrame.Position = UDim2.new(0.5, -290, 0.5, -230) mainFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 24) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Draggable = true mainFrame.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 14) corner.Parent = mainFrame local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(90, 140, 255) stroke.Thickness = 2 stroke.Parent = mainFrame -- Title Bar local titleBar = Instance.new("Frame") titleBar.Size = UDim2.new(1, 0, 0, 55) titleBar.BackgroundColor3 = Color3.fromRGB(22, 22, 28) titleBar.BorderSizePixel = 0 titleBar.Parent = mainFrame local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -180, 1, 0) title.BackgroundTransparency = 1 title.Text = "INVEST CENTER" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.TextSize = 24 title.Font = Enum.Font.GothamBold title.Parent = titleBar -- Activate All Button local activateAllBtn = Instance.new("TextButton") activateAllBtn.Size = UDim2.new(0, 140, 0, 36) activateAllBtn.Position = UDim2.new(0, 20, 0, 8) activateAllBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 48) activateAllBtn.Text = "Activate All: OFF" activateAllBtn.TextColor3 = Color3.fromRGB(180, 180, 180) activateAllBtn.Font = Enum.Font.GothamBold activateAllBtn.TextSize = 15 activateAllBtn.Parent = titleBar local allCorner = Instance.new("UICorner") allCorner.CornerRadius = UDim.new(0, 10) allCorner.Parent = activateAllBtn -- Minimize & Close local minimizeBtn = Instance.new("TextButton") minimizeBtn.Size = UDim2.new(0, 40, 0, 40) minimizeBtn.Position = UDim2.new(1, -85, 0, 8) minimizeBtn.BackgroundTransparency = 1 minimizeBtn.Text = "−" minimizeBtn.TextColor3 = Color3.fromRGB(200, 200, 200) minimizeBtn.TextSize = 30 minimizeBtn.Font = Enum.Font.GothamBold minimizeBtn.Parent = titleBar local closeBtn = Instance.new("TextButton") closeBtn.Size = UDim2.new(0, 40, 0, 40) closeBtn.Position = UDim2.new(1, -45, 0, 8) closeBtn.BackgroundTransparency = 1 closeBtn.Text = "✕" closeBtn.TextColor3 = Color3.fromRGB(220, 60, 60) closeBtn.TextSize = 24 closeBtn.Font = Enum.Font.GothamBold closeBtn.Parent = titleBar local contentFrame = Instance.new("Frame") contentFrame.Size = UDim2.new(1, -20, 1, -65) contentFrame.Position = UDim2.new(0, 10, 0, 60) contentFrame.BackgroundTransparency = 1 contentFrame.Parent = mainFrame local safeModeBtn = Instance.new("TextButton") safeModeBtn.Size = UDim2.new(0, 140, 0, 36) safeModeBtn.Position = UDim2.new(0, 20, 0, 5) safeModeBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 48) safeModeBtn.Text = "Safe Mode: OFF" safeModeBtn.TextColor3 = Color3.fromRGB(180, 180, 180) safeModeBtn.Font = Enum.Font.GothamSemibold safeModeBtn.TextSize = 15 safeModeBtn.Parent = contentFrame local safeCorner = Instance.new("UICorner") safeCorner.CornerRadius = UDim.new(0, 10) safeCorner.Parent = safeModeBtn local safeMode = false local defaultSafeDelay = 0.05 local delay = 0.05 -- Speed Control (same) local speedFrame = Instance.new("Frame") speedFrame.Size = UDim2.new(1, -40, 0, 50) speedFrame.Position = UDim2.new(0, 20, 0, 50) speedFrame.BackgroundColor3 = Color3.fromRGB(28, 28, 35) speedFrame.Parent = contentFrame local speedLabel = Instance.new("TextLabel") speedLabel.Size = UDim2.new(0.4, 0, 1, 0) speedLabel.BackgroundTransparency = 1 speedLabel.Text = "Speed (Delay)" speedLabel.TextColor3 = Color3.fromRGB(200, 200, 200) speedLabel.TextSize = 16 speedLabel.Font = Enum.Font.GothamSemibold speedLabel.TextXAlignment = Enum.TextXAlignment.Left speedLabel.Parent = speedFrame local speedValue = Instance.new("TextLabel") speedValue.Size = UDim2.new(0.3, 0, 1, 0) speedValue.Position = UDim2.new(0.7, 0, 0, 0) speedValue.BackgroundTransparency = 1 speedValue.Text = "0.05s" speedValue.TextColor3 = Color3.fromRGB(100, 200, 255) speedValue.TextSize = 16 speedValue.Font = Enum.Font.GothamBold speedValue.Parent = speedFrame local speedSlider = Instance.new("TextButton") speedSlider.Size = UDim2.new(0.6, 0, 0, 8) speedSlider.Position = UDim2.new(0.35, 0, 0.65, 0) speedSlider.BackgroundColor3 = Color3.fromRGB(60, 60, 70) speedSlider.Parent = speedFrame local sliderCorner = Instance.new("UICorner") sliderCorner.CornerRadius = UDim.new(0, 4) sliderCorner.Parent = speedSlider local sliderKnob = Instance.new("Frame") sliderKnob.Size = UDim2.new(0, 14, 0, 14) sliderKnob.Position = UDim2.new(0.5, -7, 0.5, -7) sliderKnob.BackgroundColor3 = Color3.fromRGB(90, 160, 255) sliderKnob.Parent = speedSlider local knobCorner = Instance.new("UICorner") knobCorner.CornerRadius = UDim.new(1, 0) knobCorner.Parent = sliderKnob -- Safe Mode + Slider Logic (same as before) safeModeBtn.MouseButton1Click:Connect(function() safeMode = not safeMode if safeMode then safeModeBtn.Text = "Safe Mode: ON" safeModeBtn.BackgroundColor3 = Color3.fromRGB(70, 180, 100) delay = defaultSafeDelay speedValue.Text = string.format("%.2fs", delay) sliderKnob.Position = UDim2.new(0.5, -7, 0.5, -7) else safeModeBtn.Text = "Safe Mode: OFF" safeModeBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 48) end end) local dragging = false speedSlider.MouseButton1Down:Connect(function() if not safeMode then dragging = true end end) game:GetService("UserInputService").InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) game:GetService("RunService").RenderStepped:Connect(function() if dragging and not safeMode then local mouseX = game:GetService("UserInputService"):GetMouseLocation().X local sliderPos = speedSlider.AbsolutePosition.X local sliderSize = speedSlider.AbsoluteSize.X local percent = math.clamp((mouseX - sliderPos) / sliderSize, 0, 1) sliderKnob.Position = UDim2.new(percent, -7, 0.5, -7) delay = math.round(percent * 100) / 100 speedValue.Text = string.format("%.2fs", delay) end end) local container = Instance.new("Frame") container.Size = UDim2.new(1, -40, 1, -130) container.Position = UDim2.new(0, 20, 0, 115) container.BackgroundTransparency = 1 container.Parent = contentFrame local uiListLayout = Instance.new("UIListLayout") uiListLayout.Padding = UDim.new(0, 12) uiListLayout.SortOrder = Enum.SortOrder.LayoutOrder uiListLayout.Parent = container -- Store all controls for Activate All local allToggles = {} local function createToggle(name, id) local frame = Instance.new("Frame") frame.Size = UDim2.new(1, 0, 0, 58) frame.BackgroundColor3 = Color3.fromRGB(28, 28, 35) frame.Parent = container local fc = Instance.new("UICorner") fc.CornerRadius = UDim.new(0, 12) fc.Parent = frame local label = Instance.new("TextLabel") label.Size = UDim2.new(0.38, 0, 1, 0) label.BackgroundTransparency = 1 label.Text = name label.TextColor3 = Color3.fromRGB(225, 225, 225) label.TextSize = 18 label.Font = Enum.Font.GothamSemibold label.TextXAlignment = Enum.TextXAlignment.Left label.Parent = frame local padding = Instance.new("UIPadding") padding.PaddingLeft = UDim.new(0, 18) padding.Parent = label local normalBtn = Instance.new("TextButton") normalBtn.Size = UDim2.new(0, 78, 0, 38) normalBtn.Position = UDim2.new(0.4, 0, 0.5, -19) normalBtn.BackgroundColor3 = Color3.fromRGB(55, 55, 60) normalBtn.Text = "Normal" normalBtn.TextColor3 = Color3.fromRGB(255, 255, 255) normalBtn.Font = Enum.Font.GothamBold normalBtn.TextSize = 14 normalBtn.Parent = frame Instance.new("UICorner", normalBtn).CornerRadius = UDim.new(0, 999) local doubleBtn = Instance.new("TextButton") doubleBtn.Size = UDim2.new(0, 78, 0, 38) doubleBtn.Position = UDim2.new(0.54, 0, 0.5, -19) doubleBtn.BackgroundColor3 = Color3.fromRGB(55, 55, 60) doubleBtn.Text = "Double" doubleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) doubleBtn.Font = Enum.Font.GothamBold doubleBtn.TextSize = 14 doubleBtn.Parent = frame Instance.new("UICorner", doubleBtn).CornerRadius = UDim.new(0, 999) local tripleBtn = Instance.new("TextButton") tripleBtn.Size = UDim2.new(0, 78, 0, 38) tripleBtn.Position = UDim2.new(0.68, 0, 0.5, -19) tripleBtn.BackgroundColor3 = Color3.fromRGB(55, 55, 60) tripleBtn.Text = "Triple" tripleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) tripleBtn.Font = Enum.Font.GothamBold tripleBtn.TextSize = 14 tripleBtn.Parent = frame Instance.new("UICorner", tripleBtn).CornerRadius = UDim.new(0, 999) local normalRunning = false local doubleRunning = false local tripleRunning = false local function startNormal() normalRunning = true normalBtn.BackgroundColor3 = Color3.fromRGB(70, 220, 120) task.spawn(function() while normalRunning do game:GetService("ReplicatedStorage").Events.EmailProgress:FireServer(id, {[1] = {["key"] = "", ["correct"] = false}}) task.wait(math.max(delay, 0.001)) end end) end local function startDouble() doubleRunning = true doubleBtn.BackgroundColor3 = Color3.fromRGB(180, 80, 255) task.spawn(function() while doubleRunning do game:GetService("ReplicatedStorage").Events.EmailProgress:FireServer(id, {[1] = {["key"] = "", ["correct"] = false}}) task.wait(math.max(delay, 0.001)) end end) end local function startTriple() tripleRunning = true tripleBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 150) task.spawn(function() while tripleRunning do game:GetService("ReplicatedStorage").Events.EmailProgress:FireServer(id, {[1] = {["key"] = "", ["correct"] = false}}) task.wait(math.max(delay, 0.001)) end end) end local function stopAll() normalRunning = false doubleRunning = false tripleRunning = false normalBtn.BackgroundColor3 = Color3.fromRGB(55, 55, 60) doubleBtn.BackgroundColor3 = Color3.fromRGB(55, 55, 60) tripleBtn.BackgroundColor3 = Color3.fromRGB(55, 55, 60) end normalBtn.MouseButton1Click:Connect(function() if normalRunning then stopAll() else startNormal() end end) doubleBtn.MouseButton1Click:Connect(function() if doubleRunning then stopAll() else startDouble() end end) tripleBtn.MouseButton1Click:Connect(function() if tripleRunning then stopAll() else startTriple() end end) table.insert(allToggles, {startNormal = startNormal, startDouble = startDouble, startTriple = startTriple, stopAll = stopAll}) end -- Create Toggles createToggle("Email Progress 1", 1) createToggle("Email Progress 2", 2) createToggle("Email Progress 3", 3) createToggle("Email Progress 4", 4) -- Activate All Logic local allActive = false activateAllBtn.MouseButton1Click:Connect(function() allActive = not allActive if allActive then activateAllBtn.Text = "Activate All: ON" activateAllBtn.BackgroundColor3 = Color3.fromRGB(70, 180, 100) for _, toggle in ipairs(allToggles) do toggle.startNormal() toggle.startDouble() toggle.startTriple() end else activateAllBtn.Text = "Activate All: OFF" activateAllBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 48) for _, toggle in ipairs(allToggles) do toggle.stopAll() end end end) -- Minimize Logic local minimized = false local originalSize = mainFrame.Size minimizeBtn.MouseButton1Click:Connect(function() minimized = not minimized if minimized then mainFrame:TweenSize(UDim2.new(0, 580, 0, 55), "Out", "Quad", 0.3, true) contentFrame.Visible = false minimizeBtn.Text = "+" else mainFrame:TweenSize(originalSize, "Out", "Quad", 0.3, true) contentFrame.Visible = true minimizeBtn.Text = "−" end end) closeBtn.MouseButton1Click:Connect(function() screenGui:Destroy() end) print(" Invest Center Loaded with Activate All + Minimize!")