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

Is there any way to disable mouselock?

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

Thanks!

2 answers

✓ Accepted answer

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

2 comments

0

Wow that was easier than I expected. I can't believe I didn't know about this property. Thanks!

0

Haha, no prob. Glad I could help :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.