HumanoidStateType.Physics?

Anyone know what the “Physics” Humanoid state type does? I have a vague idea, but I’m not entirely sure what all it’s useful for, and also, how do you turn it off? Changing state to getting up or jumping doesn’t seem to work.

It’s a value to check what state they’re on. I’m not sure if you can customise or mess with it, but I think it’s still possible.

Here’s the documentation.

1 Like

Do you know how to turn it off after changing to that humanoid state type?

See this.

Doesn’t that just stop the humanoid from changing to that state? If I set the state to Physics, would setstateenabled turn the state off? I tried changing states to like jumping or gettingup but stays on the physics state.

They’re asking about the HumanoidStateType Physics, not about state types in general. That being said, I haven’t worked with the physics state type and never have had to do so, so I’m not entirely sure how it works.

1 Like

Yeah dude I know about that, Im not trying to prevent the physics state type from being set, Im trying to turn it off after setting the state type to physics.

What are you specifically looking to turn off? Is it good enough if you use SetStateEnabled to disable all states except Physics, therefore the Humanoid will not be able to enter any state but Physics? That’s the way I can think of right now.

1 Like

I’m trying to set the state to physics, then a few seconds later, set it to something else. The issue is when I set it to physics, then change it, it stays in the physics state.

You should read the documentation for the enum HumanoidStateType because it tells you exactly what it does.

Yeah, use this thing to change it.

No what I’m saying is I’m trying to do that, but it isn’t working for the Physics humanoidstatetype for some reason

Are you sure your script is running? What kind of script do you use? Where do you put your script?

its in serverscriptservice. It sets the stats to physics just fine, but I cant seem to unset it with ChangeState as it says to do on the documentation

Try changing the state to HumanoidStateType.Running and see if that works. If it doesn’t I’m not sure what the issue would be.

I just wanted to clarify for @Crying_Rn. He was asking what the physics state type does to a humanoid, not how to change the humanoid state type.

To quote the wiki, when the humanoid’s state type is physics, the following occurs:

This means that the humanoid will enter a similar state that occurs when you enable the humanoid’s PlatformStand property. That is, it will not be able to produce any reaction force or move on its own accord.

11 Likes