My question is, When I have a GUI Frame, and I want to use MouseWheelForward, How do I make it fire the MouseWheelForward event, Without Scrolling in on the Player's Character? For Example:
script.Parent.Parent.Frame.MouseWheelForward:connect(function() print("He is going forward") end)
Answers would be gladly appreciated.
Specifying the frame as Active
blocks all mouse actions from doing anything the ROBLOX way (but will still trigger the events). (This is equivalent to the behavior of using a TextButton
instead of a Frame
)
If you still want to be able to click through, you can only momentarily turn the Frame to Active
upon scrolling, like this:
script.Parent.MouseWheelBackward:connect(function() script.Parent.Active = true; wait(0.03); script.Parent.Active = false; end);