function onRunning(o)if o>.5 then playAnimation("\119\097\108\107",.2,Humanoid)pose="\087\097\108\107\105\110\103"elseif o<.5 then playAnimation("\105\100\108\101",.2,Humanoid)pose="\083\116\097\110\100\105\110\103"end end function onDied()pose="\068\101\097\100"end function onGettingUp()pose="\071\101\116\116\105\110\103\085\112"end function onFallingDown()pose="\070\097\108\108\105\110\103\068\111\119\110"end function onPlatformStanding()pose="\080\108\097\116\102\111\114\109\083\116\097\110\100\105\110\103"end local o=0 function stepAnimate(W)local x=1 local t=1 local k=W-o o=W if pose=="\068\101\097\100"or pose=="\071\101\116\116\105\110\103\085\112"or pose=="\070\097\108\108\105\110\103\068\111\119\110"or pose=="\083\101\097\116\101\100"or pose=="\080\108\097\116\102\111\114\109\083\116\097\110\100\105\110\103"then stopAllAnimations()x=.1 t=1 end end

function onRunning(speed)
	if speed>0.5 then
		playAnimation("walk", 0.2, Humanoid)
		pose = "Walking"
	elseif speed<0.5 then
		playAnimation("idle", 0.2, Humanoid)
		pose = "Standing"
	end
end
function onDied()
	pose = "Dead"
end
function onGettingUp()
	pose = "GettingUp"
end
function onFallingDown()
	pose = "FallingDown"
end
function onPlatformStanding()
	pose = "PlatformStanding"
end
local lastTick = 0
function stepAnimate(currentTime)
	local amplitude = 1
	local frequency = 1
  	local deltaTime = currentTime - lastTick
  	lastTick = currentTime
	if (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
		stopAllAnimations()
		amplitude = 0.1
		frequency = 1
	end
end