Click to move part system

How would I make it so I can click on a part to move it somewhere else? I don’t really understand how I could convert the mouse position to a value that the part could move to. Any suggestions?

Thanks!

1 Like

Once you have retrieved PlayerMouse The Mouse | Roblox Creator Documentation
Has a property Mouse | Roblox Creator Documentation a Cframe Property which you could index for position

local position = mouse.Hit.p

Then you would tween or use bodymovers or just set how ever you would like to move said part.
You would need to use a remote event if you want the server to move the mouse (so that it can be visible to all players)

Because to retrieve Mouse you need to do it on client.
To move part on server using Mouse you need to fire server with Position w/e you use.

Thanks! This really helped me out.