> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# mousescroll

> Sends a mouse wheel event when the Roblox window is active. The amount argument is checked as a Lua number, and passed directly as the dwData value to mouse input with the requested mouse action. Real does not normalize the amount or add movement data. The function returns nothing and returns without sending input when isrbxactive would be false.

<div className="real-function-page">
  ```lua theme={null}
  mousescroll(amount: number)
  ```

  ## Arguments

  <ParamField path={"amount"} type={"number"} required>
    Wheel dwData value read as a Lua number and converted to an integer before being passed to mouse input.
  </ParamField>
</div>
