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

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

Asked by 5 years ago
Edited 5 years ago

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

Log in to vote
0
Answered by 5 years ago

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.

0
Is there a page that has a list of all the attributes of Humanoid class? devwitwiki -28 — 5y
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. bludud1234 40 — 5y
0
anchor him devwitwiki -28 — 5y
0
It could work but then I'd have to simulate physics, which I don't feel like doing. bludud1234 40 — 5y
View all comments (5 more)
0
Good devwitwiki -28 — 5y
0
Not sure when physics is calculated compared to scripts. bludud1234 40 — 5y
0
Bah, I'm probably going to have to make a custom character. bludud1234 40 — 5y
0
No you have to unanchor it after you do your thing devwitwiki -28 — 5y
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 ScrubSadmir 200 — 5y
Ad

Answer this question