local c=humanoid:LoadAnimation(script.walk)local O=humanoid:LoadAnimation(script.idle)O:Play()local v=false humanoid.Running:connect(function(t)if t>=1 then if v==false then O:Stop()c:Play()end v=true elseif v then if v==true then c:Stop()O:Play()end v=false end end)

local walk = humanoid:LoadAnimation(script.walk)
local idle = humanoid:LoadAnimation(script.idle)
idle:Play()
local running = false
humanoid.Running:connect(function(speed)
	if speed >= 1 then
		if running == false then
			idle:Stop()
			walk:Play()
		end
		running = true
	elseif running then
		if running == true then
			walk:Stop()
			idle:Play()
		end
		running = false
	end
end)
