Syntax
mousescroll(amount: number)Arguments
| Name | Type | Description |
|---|---|---|
amount | number | Wheel dwData value read as a Lua number and converted to an integer before being passed to mouse input. |
Description
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.
Call it with 1 parameter(s): amount. The argument table explains which values are required and which ones only refine the behavior.
It does not return data. Treat the call as an action and handle errors around the call site when needed.
Example
Example call with placeholder values.
mousescroll(1)