How can I make the users mouse not able to leave a certain area?

Hey guys, Im wondering how I can make the users mouse not able to go past a certain area on the screen. The video below is an example of what I want.

Thanks guys!

1 Like

I’m pretty sure the way soundspace does it is by not worrying about the mouse’s actual position at all and instead moving a frame using UserInputService:GetMouseDelta(). The frame then stands in as your cursor but it’s easily controllable unlike your mouse.

1 Like

Interesting. In order to learn how to make rhythm games im challenging myself to remake sound space. Having to incorporate a frame would make me have to recode a lot of things. Ill have to try it though.