Best way to move part to mouse?

hello. i am trying to make a airhockey table and i dont know how i should move the bat (looks like a eating plate) to the mouse. i dont want it to rotate or spin or get fling. i want it to move on the table part only on a set line. the puck should not be able to bounce, either the bat.
it should move similar to a claw machine with x and y axis

… currently using humanoid moveto…

1 Like

Could you provide the script that determines the part’s CFrame?