You can write your topic however you want, but you need to answer these questions:
Hey everyone, I’ve recently ran into an issue when working with larger Humanoid NPC’s. Whenever they are getting out of a sitting position they tend to spazz out and go careening around the screen.'d also like to add that this behavior doesnt happen with normal sized NPC’s. Attached is a gif of my large NPC going crazy.
I’ve tried disabling the falling down state and ragdoll, since that was recommended on a similar post but that didn’t change anything for me.The script is below.
-- This is a LocalScript (inside the NPC model)
local stateType = Enum.HumanoidStateType
local humanoid = script.Parent:WaitForChild("Monster")
-- Function to disable states for the NPC
local function disableStates()
humanoid:SetStateEnabled(stateType.FallingDown, false)
humanoid:SetStateEnabled(stateType.Ragdoll, false)
end
-- Call the function to disable states when the NPC is spawned
disableStates()
Has anyone ran into this before? and if so are there any fixes?