Mouse lock option wont work

Issue: roblox mouse lock wont work. What do I need to do to make it work?(camera, movement mode) I keep enabling the mouse lock option in studio but then idk why when i play the game the option is disabled and i have to enable it again. I even have 2 scripts changing enabling it. One goes to the player manually to enable mouse lock and the other for starter player. How do I solve this? It is bugging me and has been happning for so long.

1 Like

What do you mean by mouse lock option? Do you mean the shift lock?

1 Like

Yes. I meant the shift lock option. Studio calls it mouse lock.

  1. Make sure the property ā€˜EnableMouseLockOptionā€™ on StarterPlayer is set to true.

  2. Make sure thereā€™s no other scripts in your game changing this property, you can do this by pressing Ctrl + Shift + F and searching ā€˜EnableMouseLockOptionā€™.

I have enabled it on StarterPlayer, it keeps getting automatically disabled like everytime I open studio or leave it.

I know this seems a little obvious but are you publishing the game after changing the setting?

Yes I am doing that. Why do you ask?