Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I fix first person mouse lock from moving out of the center?

When I go in first person the mouse moves out the center

It might be because of an invisible gui that covers the screen but I don't know how to fix my mouse from it

i actually use the gui, so once u spawn in the frame appears and it covers the whole screen

5 comments

0

show you're code

0

I don't have code??

0

there isn't any code that causes this

1

Do you have any GUIs with the “Modal” property checked? If so, try unchecking them. That property “unlocks” the mouse when it’s supposed to move in the center. Also, if that doesn’t work and you have a whole GUI covering your screen, like a frame, try disabling the “Active” property.

0

frame is not active but still is doing the same thing

1 answer

✓ Accepted answer

Do not make the Gui invisible go to the screen gui's property's and there you are able to toggle the Enabled checkmark or do it like this in a script

game:GetService("Players").LocalPlayer.PlayerGui."GuiName".Enabled = true

or

game:GetService("Players").LocalPlayer.PlayerGui."GuiName".Enabled = false

2 comments

0

i actually use the gui, so once u spawn in the frame appears and it covers the whole screen

0

then try to un check the checkbox "visible" of the Frame

This discussion is preserved as it was. New answers, comments, and votes are closed.