How to make my plugin detect clicks on the 3D drag handles in studio

Specifically, I am attempting to create a plugin that is intended to create “nodes” wherever the user clicks to then procedurally generate vines between the nodes. In order to prevent the object behind the node from being selected while creating nodes, I used Selection:Set({}) to de-select any selected objects as soon as the node is created. However, because all selected objects are deselected when clicking, the user becomes unable to use the inbuilt movement tools to move the nodes around. Any attempts to click and drag the movement handles results in the handles being deselected and a new node being placed.

I want to know how, if at all possible, to detect when the player clicks on the inbuilt movement tool handles so that I can skip the node placement and allow the handles to be accurately selected. Additionally, it would also be ideal to know a better solution for preventing selection of parts behind the nodes that I’m placing down, as I feel that simply deselecting everything whenever the user clicks is probably not the best way.

image image

2 Likes

I’m also stumped by this. I’m trying to make a plugin to change selection behavior and I can’t find a way to filter out clicks on drag handles. Is this possible?