Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How does one turn off Humanoid Auto Rotate?

Asked by
exarlus 72
6 years ago

Whenever I try it says ": attempt to index global 'Humanoid' (a nil value)" .

0
Post your code, please. Avigant 2374 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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
0
thanks btw im sorry that i didn't post a script for an example. exarlus 72 — 6y
0
It's fine. As long as you're not asking for a script, it's fine. DeceptiveCaster 3761 — 6y
0
Btw this only works locally and not serverside and i wanted it to be both locally and serverside :V exarlus 72 — 6y
0
A server-side script would work, but I just prefer LocalScripts. DeceptiveCaster 3761 — 6y
Ad

Answer this question