Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to make a npc walk with a different animation?

Asked by
Prioxis 673 Moderation Voter
10 years ago

I created a zombie walking animation but I don't know how to add that to a NPC help?

1 answer

Log in to vote
1
Answered by 10 years ago

This is the basics:-

        -- load it to the humanoid; get AnimationTrack
        currentAnimTrack = humanoid:LoadAnimation("Animation file here")

        -- play the animation
        currentAnimTrack:Play("transitionTime")

for the full script run the project in solo mode, then find your character. in the character will be an Animate script which all character in roblox use in every game. hope this helps

Ad

Answer this question