local N=script.Parent local p=1 local f=200 local z=script.Parent:WaitForChild("\072\117\109\097\110\111\105\100")local D=script.Parent:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local y=Enum.HumanoidStateType local H=0 local d=false while true do wait()if D.Velocity.Y<-f then H=H+p d=false z:SetStateEnabled(y.GettingUp,false)z:ChangeState(y.FallingDown)z.Parent.Head.RotVelocity=Vector3.new(0,10,20)end if z.FloorMaterial~=nil and(z.FloorMaterial~=Enum.Material.Air and(z.FloorMaterial~=Enum.Material.Rock and(z.FloorMaterial~=Enum.Material.Water and d)))then d=false z:ChangeState(y.FallingDown)z.Health=z.Health-H H=0 z.Parent.UpperTorso.RotVelocity=Vector3.new(0,-10,20)elseif D.Velocity.Y>-f then wait()H=0 z:SetStateEnabled(y.GettingUp,true)end end
--Place me in StarterCharacterScripts located in StarterPlayer
local character = script.Parent
local timesby = 1 --Multiplyer
local DamageVelocity = 200 --How fast you go to take damage

local humanoid = script.Parent:WaitForChild("Humanoid")
local humanoidRP = script.Parent:WaitForChild("HumanoidRootPart")
local stateType = Enum.HumanoidStateType
local speed = 0
local fell = false
while true do
	wait()
	if humanoidRP.Velocity.Y < -DamageVelocity then
		speed = speed + timesby
		fell = false
		humanoid:SetStateEnabled(stateType.GettingUp, false)
		humanoid:ChangeState(stateType.FallingDown)
		humanoid.Parent.Head.RotVelocity = Vector3.new(0, 10, 20)
	end
	if
		humanoid.FloorMaterial ~= nil
		and humanoid.FloorMaterial ~= Enum.Material.Air
		and humanoid.FloorMaterial ~= Enum.Material.Rock
		and humanoid.FloorMaterial ~= Enum.Material.Water
		and fell
	then
		fell = false
		humanoid:ChangeState(stateType.FallingDown)
		humanoid.Health = humanoid.Health - speed
		speed = 0
		humanoid.Parent.UpperTorso.RotVelocity = Vector3.new(0, -10, 20)
	elseif humanoidRP.Velocity.Y > -DamageVelocity then
		wait()
		speed = 0
		humanoid:SetStateEnabled(stateType.GettingUp, true)
	end
end
