--Animation

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)
