Animations will play for a second perfectly then stop HELP

I am making a tps game and all my animations will play for a second perfectly then they will stop and my character will just glide across the floor. When I restart the game it just repeats. Does anyone have any idea why this is happening and can they help?

It sounds like you didn’t check “Loop time” in your animation clips. Select your animation clip in the project folder and tick “Loop time” in the inspector.