local humanoid = script.Parent:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local walkAnim = Instance.new("Animation")
walkAnim.AnimationId = "rbxassetid://129047440586083"
local walkTrack = animator:LoadAnimation(walkAnim)
walkTrack.Looped = true
walkTrack.Priority = Enum.AnimationPriority.Movement
local runAnim = Instance.new("Animation")
runAnim.AnimationId = "rbxassetid://77712285975109"
local runTrack = animator:LoadAnimation(runAnim)
runTrack.Looped = true
runTrack.Priority = Enum.AnimationPriority.Action
local currentTrack = nil
local function switchTo(track)
if currentTrack and currentTrack.IsPlaying then
currentTrack:Stop()
end
if track then
track:Play()
end
currentTrack = track
end
humanoid.Running:Connect(function(speed)
if speed == 0 then
switchTo(nil)
elseif speed <= 16 then
switchTo(walkTrack)
else
switchTo(runTrack)
end
end)
** You are now Level 4! **