local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") local cashRemote = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("Cash/Wins") local gui = Instance.new("ScreenGui") gui.Name = "LoopWinsUI" gui.ResetOnSpawn = false gui.Parent = PlayerGui local btn = Instance.new("TextButton") btn.Size = UDim2.new(0, 150, 0, 50) btn.Position = UDim2.new(0, 50, 0, 50) btn.BackgroundColor3 = Color3.fromRGB(50, 50, 50) btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.Text = "Loop Wins: OFF" btn.Parent = gui local looping = false btn.MouseButton1Click:Connect(function() looping = not looping if looping then btn.Text = "Loop Wins: ON" else btn.Text = "Loop Wins: OFF" end end) RunService.Heartbeat:Connect(function() if looping then pcall(function() cashRemote:FireServer() end) end end)