The Scripted Camera does NOT WORK with mouse tracking

Just an hour ago, my camera code stopped working on its own, although it had been working smoothly for weeks before, but today it just doesn’t seem to want to work. When the mouse is moving, when the camera is Scriptable, the movement is no longer taken into account.

Code:
game:GetService(“ContextActionService”):BindActionAtPriority(“MouseMovedController”, function()
print(game:GetService(“UserInputService”):GetMouseDelta())
return Enum.ContextActionResult.Pass
end, false, 3001, Enum.UserInputType.MouseMovement)

GIF:
https://gyazo.com/38a2d44c7be8a5be8870c8d19f0d90aa

Notably, sometimes Mouse Delta only works if the mouse is locked.

Try adding this somewhere in your code and see if that fixes it.

local UserInputService = game:GetService("UserInputService") -- Remove this if you already have a variable for it
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter

If it’s still not working, perhaps the code to move the camera with the mouse was deleted?