How do I make it so when a player equips something mouselock turns on?

How can I force a player into mouselock mode when they equip a tool?

2 Likes

I believe you have to fork the Camera Script, then rewrite a couple of lines and use those functions needed to toggle it.

Ah I see, also what if I wanted to disable shiftlock and enable it as I please? Is that possible?

I think you can lock that option in StarterPlayer.

What mean you with mouselook? What is that?

1 Like

@Eternalove_fan32 Mouselock is a feature where your mouse is stuck in center of the screen and you can only move your camera.

I think I do have a script for that… I am not too sure about that thou.

Check this How can I force shift lock? and use equipped event:script.Parent.Equipped:Connect(functionname)

3 Likes