mousescroll
Sends vertical scroll input.
Syntax
Signature
mousescroll(Amount: number) -> booleanAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Amount | number | Signed scroll steps from -100 through 100. |
Returns
| Type | Description |
|---|---|
boolean | Whether the platform accepted the scroll event. |
Notes
Amount is truncated to an integer and must be between -100 and 100. Positive values scroll up. Windows also requires the pointer to be over the game window.
Example
Luau
local Result = mousescroll(1)
print(Result)