Screen locks position and mouse becomes movable after GUI appears onscreen

I have a flashlight in my game, and whenever F is pressed a GUI showing the battery in the flashlight pops up, at the same time the whole screen locks and the mouse becomes movable in first person, here’s a video.

Any help is appreciated, thank you!

Video is not displaying properly.
Perhaps, you could post some code.

4 Likes

I dont think the code has anything to do with it, let me try and fix the video

Is there code where the mouse unlocks when you press F? If so, you should delete that code.

1 Like

No, There is no code anywhere that even alters with the players camera at all, so im wondering if maybe theres a gui setting i dont know about thats doing this?

That’s weird. Possibly a GUI setting, yes. Check and see if that’s the case.

1 Like