VINDICTA
Input · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

mousescroll

Dispatches a mouse scroll event.

function mousescroll(pixels: number): ()

Synopsis

How it works

Simulates mouse wheel scrolling via SendInput with MOUSEEVENTF_WHEEL (0x0800):
INPUT input = {};
input.type = INPUT_MOUSE;
input.mi.dwFlags = MOUSEEVENTF_WHEEL;
input.mi.mouseData = pixels;  // WHEEL_DELTA = 120 per notch
SendInput(1, &input, sizeof(INPUT));
Positive values scroll up, negative scroll down. One physical scroll wheel notch = WHEEL_DELTA (120 units). In Roblox, scrolling controls camera zoom distance. Sub-notch values (e.g., 60) work for smooth-scroll mice.

Usage

Scroll down
mousescroll(-120) "cc">-- scroll down

Parameters

pixels number
Scroll amount in pixels.