mousescroll Synchronous

Send a wheel movement to the focused interface. Use it for a list or panel that already responds to mouse-wheel input.

Syntax
Luau
mousescroll(amount: number) -> ()

Parameters

Function parameters
ParameterTypeDescription
amountnumberSigned wheel amount to submit.

Returns

()

No values.

Usage notes

The receiving control decides how far it scrolls. A non-finite amount is ignored.

Synthetic input goes to the Roblox game surface, not to Android dialogs or other app views.

Example

Example
Luau
if isrbxactive() then
    mousescroll(1)
end