-- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") -- Local Player local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") -- GUI Setup local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "FloppaClickerGui" ScreenGui.ResetOnSpawn = false -- Ensures GUI persists across respawns ScreenGui.Parent = playerGui local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0, 200, 0, 100) Frame.Position = UDim2.new(0.5, -100, 0.5, -50) Frame.BackgroundTransparency = 0.3 Frame.BackgroundColor3 = Color3.new(0, 0, 0) Frame.BorderSizePixel = 2 Frame.Parent = ScreenGui Frame.Active = true Frame.Draggable = true local ToggleButton = Instance.new("TextButton") ToggleButton.Size = UDim2.new(0, 100, 0, 50) ToggleButton.Position = UDim2.new(0.5, -50, 0.5, -25) ToggleButton.BackgroundTransparency = 0.2 ToggleButton.BackgroundColor3 = Color3.new(0.2, 0.8, 0.2) ToggleButton.Text = "Toggle OFF" ToggleButton.Parent = Frame local CloseButton = Instance.new("TextButton") CloseButton.Size = UDim2.new(0, 20, 0, 20) CloseButton.Position = UDim2.new(1, -25, 0, 5) CloseButton.BackgroundTransparency = 0.3 CloseButton.BackgroundColor3 = Color3.new(0.8, 0.2, 0.2) CloseButton.Text = "X" CloseButton.TextColor3 = Color3.new(1, 1, 1) CloseButton.Parent = Frame -- Variables local isSpamming = false local clickDetectorPath = workspace:WaitForChild("Floppa NPC"):WaitForChild("Floppa cube"):WaitForChild("ClickDetector") local spamRate = 0 -- Delay between actions (adjust as needed) -- Functions local function toggleSpam() isSpamming = not isSpamming ToggleButton.Text = isSpamming and "Toggle ON" or "Toggle OFF" ToggleButton.BackgroundColor3 = isSpamming and Color3.new(0.8, 0.2, 0.2) or Color3.new(0.2, 0.8, 0.2) end local function closeGui() ScreenGui:Destroy() end -- Button Connections ToggleButton.MouseButton1Click:Connect(toggleSpam) CloseButton.MouseButton1Click:Connect(closeGui) -- Function to collect all money local function collectMoney() for _, moneyPart in ipairs(workspace:GetDescendants()) do if moneyPart:IsA("MeshPart") and moneyPart.Name == "Money" then pcall(function() -- Fire TouchInterest for the player and the money firetouchinterest(player.Character.HumanoidRootPart, moneyPart, 0) -- Touch firetouchinterest(player.Character.HumanoidRootPart, moneyPart, 1) -- Release end) end end end -- Spam Functionality RunService.Heartbeat:Connect(function() if isSpamming then -- Fire the ClickDetector pcall(function() fireclickdetector(clickDetectorPath) end) -- Collect all the money collectMoney() -- Delay to prevent crashes task.wait(spamRate) end end) -- Ensure GUI persists across respawns player.CharacterAdded:Connect(function() ScreenGui.Parent = playerGui end)