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.

Example

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