How do i make Realistic Walking/Running?

Hey just wondering if the code in the topic at the top is the working code or the code from the beginning?

Because if you wouldn’t mind I could use it for my fighting game your choice tho