Here’s my code:
local anim = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Walk)
game.Players.LocalPlayer.Character.Humanoid.Running:Connect(function(speed)
if speed > 2 then
anim:Play()
anim:AdjustSpeed(speed/10)
else
anim:Stop()
end
end)
I have no idea why this isn’t working.
If you could help me with this it would be appreciated.