Hello, all. I'm currently trying to write a mouse-sensitivity changer with as few lines of code as possible (so it's more efficient) using the MouseDelta property. It works just fine in-studio, but in-game, it doesn't work. It's a local script in StarterGui.

I was wondering what the problem is with my code. Thanks for any help in advance.

wait(0)
desiredSensitivity = 0.2


local UIS = game:GetService("UserInputService")
UIS.MouseDeltaSensitivity = desiredSensitivity

2 comments

0

Hm... Try putting it in StarterCharacterScripts inside StarterPlayer.

0

Still doesn't function as expected.