How to play the default walk animation

I am creating a custom movement script. I would like to use the default animations for this though.

When I use a custom movement script, my player no longer (Obviously) uses the walk animation, but only gracefully slides forward.

I’ve tried doing some digging around on google, and everything that comes up is about custom animations. But, I just want to run the default animation when pressing w for example.

Any help on the direction to head in would be great. Thank you!!

2 Likes

I quickly found the answer, as I usually do after asking for help (I hope others can relate to this lol)

Here is the answer to anyone else searching with these keywords:

local walkAnimation = Instance.new("Animation")
walkAnimation.AnimationId = "http://www.roblox.com/asset/?id=507777826"
local animationTrack = Humanoid:LoadAnimation(walkAnimation);
animationTrack:Play();

Cheers!

6 Likes

Closed because not following DevForum guidelines, leaving it visible because a solution was provided.