I found out today that roblox broke the modal property. Well, it still works but… You cant make a proper cursor unlocking script now. Before, you could put the text button size to 0,0,0,0 and enable the modal property. It could work like that before. Now, if you try do to the same thing, the cursor will just not unlock. This broke many games with mouse unlocking on pressing specific key. I believe the button should be on the screen to work but im not sure.
Expected behavior
Revert this update, this method of unlocking cursor is still good, and you just broke it completely.
This new behavior also causes issues when CoreGui purchase prompt appears while zoomed into first person, as it uses a size 0 ImageButton with Modal enabled to unlock the mouse.