local character = script.Parent local humanoid = character:WaitForChild("Humanoid")
local walkAnim = script.WaitForChild("Walk") local walkAnimTrack = humanoid.Animator:LoadAnimation(walkAnim)
humanoid.Running:Connect(function(speed) if speed > 0 then if not walkAnimTrack.IsPlaying then walkAnimTrack:Play() then else if walkAnimTrack.IsPlaying then walkAnimTrack:stop() end end end)