#Humanoid is not a valid member of Part "Workspace.Rig.HumanoidRootPart"
23 messages · Page 1 of 1 (latest)
** You are now Level 5! **
nvm
i fixed it
ACTUALLY
i do have a problem
this was the line of code: local EnemyAT = enemycharacter.Humanoid.Animator:LoadAnimation(script("KnockDownAnimation"))
Yes because script is a keyword for the script instance that is running
You're attempting to call an instance
I think you meant to use square brackets instead of round brackets.
but then it comes up with this
Yes
Because you're calling it and not looking for it
Use square brackets
script refers to the running script
script is an instance
() is used to call a function
you're doing script("KnockDownAnimation")
you are attempting to call an instance.
What you probably meant to do is try indexing KnockDownAnimation by script["KnockDownAnimation"]
Ill say of it works once i get home