mousescroll

Sends vertical scroll input.

Syntax

Signature
mousescroll(Amount: number) -> boolean

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
AmountnumberSigned scroll steps from -100 through 100.

Returns

TypeDescription
booleanWhether 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)