local G=script:WaitForChild("\087\097\108\107")local M=humanoid.Animator:LoadAnimation(G)local t=script:WaitForChild("\073\100\108\101")local m=humanoid.Animator:LoadAnimation(t)humanoid.Running:Connect(function(G)if G>0 then if not M.IsPlaying and m.IsPlaying then m:Stop()M:Play()end else if M.IsPlaying and not m.IsPlaying then m:Play()M:Stop()end end end)m:Play()
-- Remeber to select the animtion object and set the id to your own!
local walkAnim = script:WaitForChild("Walk")
local walkAnimTrack = humanoid.Animator:LoadAnimation(walkAnim)

local idleAnim = script:WaitForChild("Idle")
local idleAnimTrack = humanoid.Animator:LoadAnimation(idleAnim)

humanoid.Running:Connect(function(speed)
	if speed > 0 then
		if not walkAnimTrack.IsPlaying and idleAnimTrack.IsPlaying then
			idleAnimTrack:Stop()
			walkAnimTrack:Play()
		end
	else
		if walkAnimTrack.IsPlaying and not idleAnimTrack.IsPlaying then
			idleAnimTrack:Play()
			walkAnimTrack:Stop()
		end
	end
end)

idleAnimTrack:Play()
