Disabling humanoid states questions

Few questions about Humanoid states since trying to build a system that can handle 100-200 AI at once.

Is it necessary to disable all humanoid states on both server and client, or are there only certain ones you need to do this for?


Do you have to do this every time the game starts, or is there a way of disabling states on server in studio and those disabled states replicating when the game starts?

1 Like

I’ve dealt with this problem before. I found that the Freefall humanoid state creates the most lag, and if you aren’t in need of your AI walking on multiple different Y coordinates you wont really notice a difference without it. I have tested this with around 50 AI with the following humanoid states listed below disabled on the server but it definitely wasn’t ideal. If you are in need of 100-200 AI at once I would not at all recommend using humanoids to begin with. Body movers would be much more efficient.

Hopefully this helped you.

	h:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
	h:SetStateEnabled(Enum.HumanoidStateType.Climbing, false)
	h:SetStateEnabled(Enum.HumanoidStateType.GettingUp, false)
	h:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
	h:SetStateEnabled(Enum.HumanoidStateType.Landed, false)
	h:SetStateEnabled(Enum.HumanoidStateType.Freefall, false)
	h:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
	h:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
3 Likes