GUI causes first person camera mouse to not behave as intended

I’ve stumbled into an issue where my mouse does not behave correctly while zoomed into first person camera. The mouse moves freely across the screen instead of locking and rotating the player as intended.

I have identified the issue to be associated with my ControlPanel ScreenGui through process of elimination, as per the video below.

Here’s a video demonstrating my problem:

As you can see in the video, the mouse behavior does not act as intended prior to the GUI being destroyed, then acts correctly after the GUI is destroyed.

This is a rather puzzling problem, I’m not sure if I’m missing something incredibly simple or I’ve found an engine bug so I’ve attached the source GUI if you’d like to take a look for yourself.

Happy developing, and thanks for your help with Arcade Island 3! :palm_tree::joystick:


After taking a look at your model, I’ve found that the Modal property is enabled on some of the

If true while the GUI element is visible, the mouse will not be locked unless the right mouse button is down.

To solve this issue, run this script in the command bar or manually set the Modal property to false on all GuiButtons:

for _,v in pairs(game.StarterGui:GetDescendants()) do
    if v:IsA("TextButton") or v:IsA("ImageButton") then
        v.Modal = false

Yes, as @InvestDOGE said. Modal is enabled. Do what he has stated and your problem will be fixed.

Good luck on Arcade Island 3, so far your games have been fun and entertaining.