mousescroll Synchronous
Send a wheel movement to the focused interface. Use it for a list or panel that already responds to mouse-wheel input.
Luau
mousescroll(amount: number) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
amount | number | Signed wheel amount to submit. |
Returns
()No values.
Usage notes
The receiving control decides how far it scrolls. A non-finite amount is ignored.
Example
Luau
if isrbxactive() then
mousescroll(1)
end