I have tried to add an animation when sprinting to my script but it doesn't seem to work, the output says: "Stop is not a valid member of animation"
local anim = script.RunAnim
repeat wait() until script.Parent.Name == "Backpack"
script.KeyDown.OnServerEvent:Connect(function(asd,yo)
if yo == "0" then
script.Parent.Parent.Character.Humanoid.WalkSpeed = 20
anim:Play()
end
end)
script.KeyUp.OnServerEvent:Connect(function(asd,yo)
if yo == "0" then
script.Parent.Parent.Character.Humanoid.WalkSpeed = 13
anim:Stop()
end
end)

1 comment
Works thx