PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Ragdoll

This event fires when the Humanoid enters or leaves the Ragdoll Enum/HumanoidStateType.

When the Humanoid enters the Ragdoll state this event will fire with an active parameter of true. The event will fire again when the Humanoid leaves the Ragdoll state, generally for the GettingUp `Enum/HumanoidStateType’.

You can disable tripping by disabling the Ragdoll and FallingDown states using Humanoid/SetStateEnabled.

See also

  • Humanoid/FallingDown for the Humanoid event connected with the FallingDown state, which behaves similarly to Ragdoll

Parameters

Name Type Default Description

Whether the Humanoid is entering or leaving the Ragdoll Enum/HumanoidStateType


Code Samples


Humanoid action events

This code, when run from a LocalScript parented to a Player/Character will listen to the Humanoid|Humanoid’s action events and print when they are fired.

This code sample is intended to demonstrate when each event does, and does not, fire.

local character = script.Parent 

local humanoid = character:WaitForChild("Humanoid")

humanoid.Climbing:Connect(function(speed)
	print("Climbing speed: ", speed)
end)

humanoid.FallingDown:Connect(function(isActive)
	print("Falling down: ", isActive)
end)

humanoid.GettingUp:Connect(function(isActive)
	print("Getting up: ", isActive)
end)

humanoid.Jumping:Connect(function(isActive)
	print("Jumping: ", isActive)
end)

humanoid.PlatformStanding:Connect(function(isActive)
	print("PlatformStanding: ", isActive)
end)

humanoid.Ragdoll:Connect(function(isActive)
	print("Ragdoll: ", isActive)
end)

humanoid.Running:Connect(function(speed)
	print("Running speed: ", speed)
end)

humanoid.Strafing:Connect(function(isActive)
	print("Strafing: ", isActive)
end)

humanoid.Swimming:Connect(function(speed)
	print("Swimming speed: ", speed)
end)