Disabling humanoid states questions

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)
4 Likes