#Humanoid is not a valid member of Part "Workspace.Rig.HumanoidRootPart"

23 messages · Page 1 of 1 (latest)

worthy goblet
#

uhmm this is the line of code its having problems on

#

i even tried replacing humanoidrootpart with just a humanoid and this showed up

ivory groveBOT
#

studio** You are now Level 5! **studio

worthy goblet
#

nvm

#

i fixed it

#

ACTUALLY

#

i do have a problem

#

this was the line of code: local EnemyAT = enemycharacter.Humanoid.Animator:LoadAnimation(script("KnockDownAnimation"))

candid gazelle
#

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.

worthy goblet
#

but then it comes up with this

candid gazelle
#

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"]

worthy goblet
#

Ill say of it works once i get home

worthy goblet
#

uhmm

#

one problem

#

i hate to be close to the enemy to use the ability

#

how do i fix that