I'd prefer if people playing my game weren't able to use mouselock. Is there anyway to just disable it?
Thanks!
I'd prefer if people playing my game weren't able to use mouselock. Is there anyway to just disable it?
Thanks!
Actually there is a property in the player that is there for this very purpose. If you go into Studio, in the explorer go to StarterPlayer > EnableMouseLockOption and set it to false.
Also, a script that would work to set this false in game, would be something like this:
game.Players.PlayerAdded:connect(function(Player)
Player.DevEnableMouseLock = false
end)
I believe this is what you were looking for. If not, or if you have any further questions, please leave a comment below. Hope I helped :P
In StarterPlayer there is a property at the bottom that you can disable to prevent mouselock.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Wow that was easier than I expected. I can't believe I didn't know about this property. Thanks!
Haha, no prob. Glad I could help :P