#How to detect mouse wheel movement

30 messages · Page 1 of 1 (latest)

brave flame
#

Mousewheel only fires .InputChanged

sharp geyser
#

Thanks

brave flame
#

Mostly as you can’t “hold” it, if you scroll it then every scroll counts as 1 click

#

Inside the input you will also find the y of the movement (I believe it’s either -1 or 1 depending on wether you scroll up/down

sharp geyser
#

Also im getting this:

Players.ScottyRus.PlayerGui.Phone.Phone:22: attempt to compare number < Vector3
#

From this:
if input.Delta > 0 then

brave flame
#

input.Delta may be a vector3

#

I believe it’s the Y axis that changes when scrolling

sharp geyser
#

Ok thanks

brave flame
#

You can just add a quick
print(input.Delta) to check wether it’s y or z

sharp geyser
#

its input.Delta.Y

#

thanks

brave flame
#

Can you convert that clip to an mp4?

sharp geyser
#

sure

brave flame
#

Else I will have to download it to see it

sharp geyser
#

oh wow its low quality

#

hold on

agile grailBOT
#

studio** You are now Level 4! **studio

brave flame
#

Had to quickly look it up

sharp geyser
#

oh that makes sinse

#

I looked at the docs but didnt find anything about mouse wheel

brave flame
#

Else if that doesn’t work then there’s also the mouse library.

With that you will get the MouseForwards/Backwards evenrs

brave flame
#

Just forgot that it was .Position

sharp geyser
#

it works thanks

brave flame
#

Which is odd as you technically take a delta, not a position