title is pretty self explanatory, how would I detect when a player stops scrolling their scrollwheel in a script?
technically scrolling is just repeatedly pressing a button, so the best way would probably be to add a timer that resets when you scroll.
It could look like this
local scrolling = false
local thread
userinputservice.InputBegan:Connect(function(input, processed)
if (not processed and input.KeyCode == [[whatever mouse wheel forward is]]) then
scrolling = true
task.cancel(thread)
thread = task.delay(.1, function() scrolling = false end)
end
end)
might not be the best way to do it, but a proof of concept
Are you sure you need this though maybe there are better ways to achieve what you want since there isn’t a clean way that i know of to know when the scroll wheel is released without using the thread thing like the person above me posted