Mouse scroll wheel

every single mouse scroll button doesnt seem to fire at all and im having big trouble i’ve tried mouse.mouseforward and userinputservice

1 Like

you need to use the .InputChanged connection in user input service can’t remember the name of the device though

1 Like
local UIS = game:GetService("UserInputService")

UIS.InputChanged:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseWheel then
		if input.Position.Z > 0 then
			print("Mouse Wheel UP")		
		else
			print("Mouse Wheel Down")		
		end
	end
end)

this is my script it just doesnt seem to work

2 Likes

so does it just not print or never work?

1 Like

it doesnt print at allll, idk whhy it seems to be broken

1 Like

It’s the script a localscript AND inside of StarterCharacterScripts or StarterPlayerScripts?

1 Like

dumb me i had it located in workspace im sorry i put it in startergui omg

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.