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

How can you change the rotation of the player, and keep it static?

Asked by
oftenz 367 Moderation Voter
6 years ago

I am currently trying to force the Player to look in one direction. The problem is that Roblox automatically rotates the player. This is what I've tried:

Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-879.083, 956.881, 815.216), Vector3.new(-906.7, 930.466, 1044.982))

Another issue is that this is in the AIR. BodyGyro was glitchy for me. Any help?

0
CFrame.Angles? DeceptiveCaster 3761 — 6y
1
Anchor the torso Simnico99 206 — 6y
0
Body Gyro should be the best way. protectiveebob 221 — 6y

1 answer

Log in to vote
2
Answered by
RayCurse 1518 Moderation Voter
6 years ago

The comments have given some good suggestions but you should really turn the AutoRotate property of the humanoid off. After this is done, you can use a body gryo, cframe, or whatever you fancy without the default behaviour in the way.

0
Thanks, didn't know that was a property. oftenz 367 — 6y
Ad

Answer this question