local UserInputService = game:GetService("UserInputService") local VirtualInputManager = game:GetService("VirtualInputManager") UserInputService.InputBegan:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.R then -- Press "3" for the first time VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Three, false, game) VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Three, false, game) wait(0.32) -- Press "3" for the second time VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Three, false, game) VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Three, false, game) wait(0.35) -- Press "3" for the third time VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Three, false, game) VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Three, false, game) end end)