Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make roblox stop rotating the player completely / how can I rotate the player?

I'm trying to make spherical gravity, but pesky I know that pesky Roblox automatically does a bunch of annoying things like controls when the player falls over and when they get up and such, but I want all that gone. The second thing is that I'm not sure how to rotate the player, I know it has something to do with CFrame, but when I was testing that it was just making the player around.

	player:SetPrimaryPartCFrame(CFrame.new(0, 50, 0));

1 answer

To stop the player from rotating with the WASD keys, you can just do this to their humanoid.

player.Character.Humanoid.AutoRotate = false

To rotate the torso, instead of SetPrimaryPartCFrame, you can just set a new CFrame for the torso or the HumanoidRootPart, or use a BodyGyro.

9 comments

0

Is there a page that has a list of all the attributes of Humanoid class?

0

I already set AutoRotate to false, but as far as I know, the player can still get knocked over and stand back up and such, which isn't going to be good when the player is technically upside down.

0

anchor him

0

It could work but then I'd have to simulate physics, which I don't feel like doing.

0

Good

0

Not sure when physics is calculated compared to scripts.

0

Bah, I'm probably going to have to make a custom character.

0

No you have to unanchor it after you do your thing

0

I dont think even a custom character will have to make its own physics. Take NPCS or dummies for example. They still have roblox physics. Just anchor and unanchor the torso if you dont want to fall

This discussion is preserved as it was. New answers, comments, and votes are closed.