I mentioned where in the code and how to toggle it here:
You could alternatively create a LocalScript
in StarterPlayer.StarterPlayerScripts
with the following code in it:
while game:GetService("RunService").RenderStepped:Wait() do
UserSettings():GetService("UserGameSettings").RotationType = Enum.RotationType.MovementRelative
end
but it would be very unadvisable as this code would be “fighting” with the default camera controller over which movement mode is to be used.
You could also disable the CameraScript (by creating a LocalScript
in StarterPlayer.StarterPlayerScripts
and naming it “CameraScript” and setting “Disabled” to true on that script) and then calling
UserSettings():GetService("UserGameSettings").RotationType = Enum.RotationType.MovementRelative
In a LocalScript
and you wouldn’t need to call it every frame you could just call it once and be done. This of course would have the side effect of the camera would just sit there and not move to follow your character nor rotate when you right-mouse and of course the shift-lock option won’t do anything anymore so this is only really helpful if you’re looking to rewrite the camera script.