Whenever I try it says ": attempt to index global 'Humanoid' (a nil value)" .
Humanoids have a bool property called AutoRotate, and this determines if the Humanoid can turn with the camera angle that the Player's Camera is facing. Toggle it like this (LocalScript req.):
humanoid = game.Players.LocalPlayer.Character.Humanoid humanoid.AutoRotate = false