Drag scale won't stop until I press esc

Hi

When I try to scale a part by dragging, it won’t let go when I release the mouse button. It keeps going until I press escape. How do I fix this?

Sometimes it won’t even let me click it.

I fixed it. Turns out invisible gui was the issue.