How would I detect if a player clicked a part

I want a tool that adds a rope constraint to whatever part the player clicks.
How do I do this?

I think the simplest solution would be using a RopeConstraint. You can change it’s length.

You could use mouse.Target to see what part the player clicked.