As you can see, I briefly lose control of my character when I crawl between the sink and the wall.
I want to disable in it in my game as in my opinion, it creates a poor experience, however the there does not seem to be an option in the humanoid to disable it. I would look on the Dev Hub but i have no idea what the technical term for this is.
This would go in a LocalScript inside StarterPlayer.StarterCharacterScripts
To do this you would use .StateChanged function and with the parameters, check for the oldstate and newstate. If the newstate is Enum.HumanoidStateType.Ragdoll then you would disable this with humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")
humanoid.StateChanged:Connect(function(oldState, newState)
if newState == Enum.HumanoidStateType.Ragdoll then
humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
end
end)
Hmm, I dont know if this is recommended or not but can you try this?
local char = script.Parent;
local hum = char:WaitForChild("Humanoid");
while true do
wait();
if hum.HumanoidStateType == Enum.HumanoidStateType.Ragdoll then
hum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false);
end;
end;
Reviving the topic just incase someone needs help in the future.
The solution is really easy, you got to disable BOTH the ragdoll and the faillingdown humanoid states to completely disable the ragdoll, so it’s as simple as: