local UserInputService = game:GetService("UserInputService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local running = false local args = { [1] = "notepad" } -- Start the loop local function startLoop() if running then return end running = true print("Started notepad reward loop") task.spawn(function() while running do ReplicatedStorage.Reward:FireServer(unpack(args)) wait(1) -- Adjust delay as needed end end) end -- Stop the loop local function stopLoop() if running then running = false print("Stopped notepad reward loop") end end -- Key detection UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.T then startLoop() elseif input.KeyCode == Enum.KeyCode.X then stopLoop() end end) local UserInputService = game:GetService("UserInputService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local running = false -- The argument to send local args = { [1] = "virus" } -- Function to start the loop local function startLoop() if running then return end running = true print("Started virus loop") task.spawn(function() while running do ReplicatedStorage.Reward:FireServer(unpack(args)) wait(1) -- Adjust delay if needed end end) end -- Function to stop the loop local function stopLoop() if running then running = false print("Stopped virus loop") end end -- Detect key presses UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.T then startLoop() elseif input.KeyCode == Enum.KeyCode.X then stopLoop() end end)