Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to add idle,walk,attack animation to an npc?

I'm a begining scripter,and im very bad at english so it hard to learn about it.Im searching in google and dint find any turtorial.I do all think I script everything in knowledge but it dint work..btw,i use rpg kit(everycan) Can everyone help me script?Thanks!

1 answer

**

add a script to the npc :

**


wait(3)
local hum = script.Parent.Humanoid
local anim = hum:LoadAnimation(script.climb.ClimbAnim) -- climb is a stringvalue child of script 

anim:Play()

create a stringvalue within the script and the name of the stringvalue must be the name of the animation now create an animation within the stringvalue and put an animationid (in properties )and also a name, the animationid is the id of the animation you want to run you can find them in the library, now in the script, change climb to the name of the stringvalue and climbAnim to the name of the animation.

here is an image in case you did not understand :

http://subirimagen.me/uploads/20181225063054.JPG

http://subirimagen.me/uploads/20181225063122.JPG

Animations Id :

Idle: 125750544, 125750618 walk: 125749145 jump: 125750702 fall: 125750759 climb: 125750800 wave: 128777973 point: 128853357 dance: 130018893, 132546839, 132546884

------------------------Accept Answer---------------------

10 comments

0

It dint work! http://subirimagen.me/uploads/20181225071034.png i do all step or you can add friend me ign:binhtretrau12 to help me correctly!

0

wait im check back the script

0

show me the script

0

try with a while true do and check the animationid in properties, maybe this is wrong, because it does not give you any error

0

I try while true do and also check the animation id in properites!Can you make a model then send to me ?

0

Not this script! I know how to do it already..

This discussion is preserved as it was. New answers, comments, and votes are closed.