2 Frames overlap making the Draggable InputBegan runs to both. How to prevent?

I have this 2 Frames that have Draggable InputBegan. but they spawn on the same position making them overlaps with each other. Holding the mouse and moves making them move at the same time.

I tried setting the z-index of each but it still persists.

Is there a way to fix it?

image
image

1 Like