local ScreenGui = Instance.new("ScreenGui") local MainFrame = Instance.new("Frame") local CreditLabel = Instance.new("TextLabel") local ToggleBtn = Instance.new("TextButton") local MinimizeBtn = Instance.new("TextButton") local OpenBtn = Instance.new("TextButton") -- The hidden "M" button local UICorner = Instance.new("UICorner") local UIStroke = Instance.new("UIStroke") -- UI Setup ScreenGui.Name = "MapsLoverUltimate" ScreenGui.Parent = game:GetService("CoreGui") ScreenGui.ResetOnSpawn = false -- MAIN FRAME MainFrame.Name = "MainFrame" MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20) MainFrame.Position = UDim2.new(0.5, -75, 0.2, 0) MainFrame.Size = UDim2.new(0, 150, 0, 70) MainFrame.Active = true MainFrame.Draggable = true UICorner.CornerRadius = UDim.new(0, 10) UICorner.Parent = MainFrame UIStroke.Parent = MainFrame UIStroke.Color = Color3.fromRGB(80, 80, 80) UIStroke.Thickness = 1.5 -- RAINBOW CREDIT CreditLabel.Parent = MainFrame CreditLabel.Size = UDim2.new(1, 0, 0, 25) CreditLabel.BackgroundTransparency = 1 CreditLabel.Text = "MADE BY MAPSLOVER" CreditLabel.Font = Enum.Font.GothamBold CreditLabel.TextSize = 10 CreditLabel.TextYAlignment = Enum.TextYAlignment.Bottom -- TOGGLE BUTTON ToggleBtn.Parent = MainFrame ToggleBtn.Position = UDim2.new(0, 0, 0.45, 0) ToggleBtn.Size = UDim2.new(1, 0, 0, 30) ToggleBtn.BackgroundTransparency = 1 ToggleBtn.Text = "PROXIMITY: OFF" ToggleBtn.TextColor3 = Color3.fromRGB(255, 70, 70) ToggleBtn.Font = Enum.Font.GothamBold ToggleBtn.TextSize = 13 -- MINIMIZE BUTTON ("_") MinimizeBtn.Parent = MainFrame MinimizeBtn.Position = UDim2.new(1, -25, 0, 5) MinimizeBtn.Size = UDim2.new(0, 20, 0, 20) MinimizeBtn.BackgroundTransparency = 1 MinimizeBtn.Text = "_" MinimizeBtn.TextColor3 = Color3.fromRGB(200, 200, 200) MinimizeBtn.Font = Enum.Font.GothamBold MinimizeBtn.TextSize = 18 -- HIDDEN "M" BUTTON (Appears when minimized) OpenBtn.Parent = ScreenGui OpenBtn.BackgroundColor3 = Color3.fromRGB(30, 30, 30) OpenBtn.Position = UDim2.new(0, 10, 0.5, 0) OpenBtn.Size = UDim2.new(0, 35, 0, 35) OpenBtn.Visible = false OpenBtn.Text = "M" OpenBtn.TextColor3 = Color3.fromRGB(255, 255, 255) OpenBtn.Font = Enum.Font.GothamBold OpenBtn.TextSize = 18 local OpenCorner = Instance.new("UICorner") OpenCorner.CornerRadius = UDim.new(1, 0) OpenCorner.Parent = OpenBtn local OpenStroke = Instance.new("UIStroke") OpenStroke.Parent = OpenBtn OpenStroke.Color = Color3.fromRGB(255, 255, 255) OpenStroke.Thickness = 1 -- Logic Variables local Toggled = false local Prompts = {} -- Rainbow Animation task.spawn(function() while true do for i = 0, 1, 0.01 do local color = Color3.fromHSV(i, 0.8, 1) CreditLabel.TextColor3 = color OpenStroke.Color = color -- Make the "M" glow rainbow too! task.wait(0.03) end end end) -- Minimize/Open Logic MinimizeBtn.MouseButton1Click:Connect(function() MainFrame.Visible = false OpenBtn.Visible = true end) OpenBtn.MouseButton1Click:Connect(function() MainFrame.Visible = true OpenBtn.Visible = false end) -- Proximity Logic local function setupPrompt(prompt) if prompt:IsA("ProximityPrompt") then table.insert(Prompts, prompt) if Toggled then prompt.HoldDuration = 0 end end end for _, v in ipairs(game:GetDescendants()) do setupPrompt(v) end game.DescendantAdded:Connect(setupPrompt) ToggleBtn.MouseButton1Click:Connect(function() Toggled = not Toggled ToggleBtn.Text = Toggled and "PROXIMITY: ON" or "PROXIMITY: OFF" ToggleBtn.TextColor3 = Toggled and Color3.fromRGB(70, 255, 70) or Color3.fromRGB(255, 70, 70) if Toggled then for i, prompt in ipairs(Prompts) do if prompt and prompt.Parent then prompt.HoldDuration = 0 end end end end) -- Optimized Loop task.spawn(function() while task.wait(1) do if Toggled then for i = #Prompts, 1, -1 do local p = Prompts[i] if p and p.Parent then if p.HoldDuration ~= 0 then p.HoldDuration = 0 end else table.remove(Prompts, i) end end end end end)