How to make R6 ragdoll when a player falls from a high place

Hello Roblox Community I’m in search of an R6 ragdoll tutorial that works, but couldn’t found one. If you have a tutorial ready please provide some tutorials for me. Or if you can explain how it will be appreciated!

1 Like

Well, this can easily be achieved by using Enum.HumanoidStateType.

local function HumanoidState(OldState, NewState)
	if (NewState == Enum.HumanoidStateType.Landed) then

	end
end

Humanoid.StateChanged:Connect(HumanoidState)

Okay, so with this code, we can fire a function every time the humanoid lands.

Now we can get the HumanoidRootPart Velocity on the Y Axis, and if It is greater than “x”, we will ragdoll the character

local Player = game.Players.LocalPlayer
local Character = Player.CharacterAdded:Wait()
local Humanoid = Character.Humanoid
local HumanoidRootPart = Character.HumanoidRootPart

local FallDamageY = 50

local function HumanoidState(OldState, NewState)
	if NewState == Enum.HumanoidStateType.Landed then
		if HumanoidRootPart.Velocity.Y > FallDamageY then
			--Run the ragdoll code
		end
	end
end

Humanoid.StateChanged:Connect(HumanoidState)
10 Likes