Problem When Adding Animation With Code

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By deathgm

Hi everyone, I am having some problems here, I am trying to add animation with code but I get this error, I tried many things but still failed.Does anyone have a solution?
Here is code

And This Is Error:

:bust_in_silhouette: Reply From: njamster

It’s

sword_d.track_set_path(0, "Sword:position")

not

sword_d.track_set_path(0, "Sword:transform/position")