How to make a part move to mouse position with no sticking

I’m trying to make a grabbing parts script where the part will move to your mouse, but i know if i simply make it move there, it will stick to the part the mouse is touching. How do i make it stay on a Z axis while still following the mouse?

Like this?

1 Like

This is similar to what i want, but i don’t exactly want it to listen to physics as much.

Then you can use the same math calculation of finding the end position of the part without using physics based method such as body position/align position and use CFrames instead.

1 Like

I’ve decided on a different way to grab parts.