Key Spammer

@rebind / key-spammerv0.1.2Public

Hold one button to press any key over and over, as fast as you set.

Files

Older release. Installs get 0.1.2.

main.luau495 B

-- Key Spammer: while the hold key is down, press the chosen key repeatedly.

local cfg = UI.Schema({
  hold = UI.Keybind("Mouse4", { label = "Hold to spam" }),
  key = UI.Keybind("E", { label = "Key to spam" }),
  rate = UI.Slider(12, {
    min = 2,
    max = 30,
    suffix = " /s",
    label = "Presses per second",
  }),
})

Bind(
  cfg.hold,
  Async(function()
    while Input.IsDown(cfg.hold) do
      HID.Press(cfg.key, 15)
      Sleep(math.max(0, 1000 / cfg.rate - 15))
    end
  end)
)

3 files, 1.8 KB.