Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there any way to disable mouselock?

Asked by 9 years ago

I'd prefer if people playing my game weren't able to use mouselock. Is there anyway to just disable it?

Thanks!

2 answers

Log in to vote
0
Answered by
dyler3 1510 Moderation Voter
9 years ago

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

0
Wow that was easier than I expected. I can't believe I didn't know about this property. Thanks! Thelegender 13 — 9y
0
Haha, no prob. Glad I could help :P dyler3 1510 — 9y
Ad
Log in to vote
0
Answered by
drew1017 330 Moderation Voter
9 years ago

In StarterPlayer there is a property at the bottom that you can disable to prevent mouselock.

Answer this question