-- Auto Spin Farm - Toggle ON/OFF local player = game.Players.LocalPlayer -- The spin remote from your code local spinRemote = game:GetService("ReplicatedStorage").Remotes.AddSpin if not spinRemote then warn("Spin remote not found!") end -- State local running = false local loopThread = nil local spinCount = 0 -- GUI (white, non‑transparent) local screenGui = Instance.new("ScreenGui") screenGui.Name = "SpinFarm" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 260, 0, 160) frame.Position = UDim2.new(0.5, -130, 0.5, -80) frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) -- white frame.BackgroundTransparency = 0 -- fully opaque frame.BorderSizePixel = 0 frame.Active = true frame.Draggable = true frame.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 12) corner.Parent = frame local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.Position = UDim2.new(0, 0, 0, 5) title.Text = "🎰 Auto Spin Farm" title.TextColor3 = Color3.fromRGB(50, 50, 50) title.TextScaled = true title.BackgroundTransparency = 1 title.Font = Enum.Font.GothamBold title.Parent = frame -- Toggle button local toggleBtn = Instance.new("TextButton") toggleBtn.Size = UDim2.new(0.7, 0, 0.3, 0) toggleBtn.Position = UDim2.new(0.15, 0, 0.35, 0) toggleBtn.Text = "▶ START" toggleBtn.TextColor3 = Color3.new(1,1,1) toggleBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 255) toggleBtn.Font = Enum.Font.GothamBold toggleBtn.TextScaled = true toggleBtn.BorderSizePixel = 0 toggleBtn.Parent = frame local btnCorner = Instance.new("UICorner") btnCorner.CornerRadius = UDim.new(0, 8) btnCorner.Parent = toggleBtn -- Spin counter label local countLabel = Instance.new("TextLabel") countLabel.Size = UDim2.new(1, 0, 0, 25) countLabel.Position = UDim2.new(0, 0, 0, 75) countLabel.Text = "Spins: 0" countLabel.TextColor3 = Color3.fromRGB(50, 50, 50) countLabel.TextScaled = true countLabel.BackgroundTransparency = 1 countLabel.Font = Enum.Font.Gotham countLabel.Parent = frame -- Status label local status = Instance.new("TextLabel") status.Size = UDim2.new(1, 0, 0, 20) status.Position = UDim2.new(0, 0, 0, 110) status.Text = "● IDLE" status.TextColor3 = Color3.fromRGB(200, 50, 50) status.TextScaled = true status.BackgroundTransparency = 1 status.Font = Enum.Font.Gotham status.Parent = frame -- Toggle function local function toggleSpin() running = not running if running then toggleBtn.Text = "⏹ STOP" toggleBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50) status.Text = "● RUNNING" status.TextColor3 = Color3.fromRGB(0, 200, 0) spinCount = 0 loopThread = task.spawn(function() while running do pcall(function() if spinRemote then spinRemote:FireServer() spinCount = spinCount + 1 countLabel.Text = "Spins: " .. spinCount end end) -- Speed: adjust this delay for more/less spins per second -- 0.001 = ~1000/sec, 0.01 = ~100/sec, 0.05 = ~20/sec task.wait(0.001) -- very fast (1000 spins/sec) end end) else toggleBtn.Text = "▶ START" toggleBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 255) status.Text = "● IDLE" status.TextColor3 = Color3.fromRGB(200, 50, 50) if loopThread then task.cancel(loopThread) loopThread = nil end end end toggleBtn.MouseButton1Click:Connect(toggleSpin) -- Hotkey: F1 to toggle game:GetService("UserInputService").InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.F1 then toggleSpin() end end) print("[+] Auto Spin Farm loaded — click START or press F1")