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

Ideas on how to stop character from falling when spinning?

Asked by 5 years ago

I'm rapidly spinning the character using a BodyAngularVelocity.

This is the code for the BodyAngularVelocity.

local bodySpin = Instance.new("BodyAngularVelocity")
bodySpin.P = 100000
bodySpin.AngularVelocity = Vector3.new(0,100,0)
bodySpin.MaxTorque = Vector3.new(bodySpin.P,bodySpin.P,bodySpin.P)
bodySpin.Parent = script.Parent.LowerTorso

However, as you can see here, the character just falls while still spinning. I'm trying to let the character still spin, but without falling.

I don't know if this is possible, but I've tried many ways. I've taken the animate script out of the character so it doesn't fling it, and have also tried using humanoid:SetStateEnabled() but to no success. I've also tried to change the physical properties of the parts in the character such as density, but that didn't help either.

Any help would be appreciated!

0
Maybe try gradually upping the values? Pojoto 329 — 5y
0
Maybe try gradually upping the values? Pojoto 329 — 5y
0
Upping which values? Draebrewop 114 — 5y
0
I'm not sure about this but i think when falling the player speed is turned to 0. But I'm not sure. Here is the wiki. https://www.robloxdev.com/api-reference/event/Humanoid/Running GGButNO_RE 61 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

The LowerTorso is not always perfectly level with the ground, so when you spin it, things can get off-balance.

Try putting the BodyAngularVelocity in the HumanoidRootPart instead, which is always (at least for our purposes) horizontally level.

Ad

Answer this question