Why when I drag my mouse over a UI it freezes my mouse?

So when I go to drag a gui (by holding right click) it freezes the mouse until I let go. Is there any solutions to this problem? It seems to be bothering me.

Do you have a script that has a loop without a wait() in it that is only activated when the mouse is right clicked to move the GUI?

I only have a script that changes the mouses image.

Yes, but is there a loop in that script that doesn’t have a wait in it? If there’s no wait it’ll freeze.

Yes, I’m using RunService. But I don’t think it’s that. I tried it and think it’s because the player moves their camera when they right click.