MouseMovement input inconsistent

Title says it all, MouseMovement is inconsistent, doesn’t fire as often as it should (to me, it should be firing every time my mouse moves even just a pixel) I am trying to create a raycast on objects when you hover over them

local function Tip()
	print("TIP") -- Rarely prints

end

local function InputBegan(input, GPE)
	if GPE then return end

if input.UserInputType == Enum.UserInputType.MouseMovement then
		Tip()
	end
end
1 Like

you can use mouse.move for parts or mouse enter/leave for gui

mouse move

mouse enter/leave

1 Like

I don’t want to use the Mouse object as it has been superseded, thus shouldn’t be used

1 Like

So sorry i didn’t know that. Show me your full script

1 Like

Superseded not deprecated.

Mouse.Move will fire even for minor pixel movements.

I’m not gonna use it. Superseded means theres better options. When offered better options, you take them. I understand Mouse.Move will work, but it’s superseded, therefore I do not use it

1 Like

MouseMovement is primarily intended to be used with InputChanged, not Began/Ended. If you use Changed you’ll get the results you’re looking for.

1 Like

you should use InputChanged not began