How to unlock cursor in first person?

Hello,

So I’m working on a game and it is in first-person and for some reason it won’t unlock the cursor even when I have one of the text buttons with the modal property set to true.

Here is a picture.

1 Like

Is that TextButton visible? It’s required to be visible to work. Holding right-click will also keep the mouse locked while down.

1 Like

Yep, the TextButton is visible. I have a Ui shop and it works perfectly fine but I can’t find the reason why it won’t work on here.

1 Like

If everything is visible, I don’t see why it wouldn’t work. Alternatively, you could either put try having a higher level UI element with modal enabled or just temporarily make the player’s minimum zoom slightly less than what first person requires.

Actually, it looks like you’re using a SurfaceGui. I think modal only works for ScreenGui.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.