Force shift lock on equip

I’m trying to make it so when you equip any tool it will force shift lock.

I don’t really know how I would achieve it so I was wondering if someone had a solution.

I’ve tried reading some posts but they don’t fit the description I am looking for.

1 Like

Type this inside the tool

script.Parent.Equipped:Connect(function()
    Game.StarterPlayer.EnableMouseLockOption = true
end)

script.Parent.Unequipped:Connect(function()
    Game.StarterPlayer.EnableMouseLockOption = false
end)

This may have spelling mistakes so check that out

That won’t work because it’s only changes if client can enable Shiftlock on their client or not.

I tried it and it didn’t work.

I found a post on the Dev Forum

Also this

There isn’t quite difference

2 Likes