When returning an instance from a table via module, it loses all of it's functions

Animator:LoadAnimation() only accepts Animation objects. Did you use a string/number type AssetId?

2 Likes

image

2 Likes

No, did you use Animation.AnimationId instead of the object itself when loading the animations? In theory the revision I made should work as it looks through all the tables in AnimationSettings to find Animation objects, then load them, and finally replace the table of Animations into a table of AnimationTracks.

2 Likes

No i didn’t but i just realized some of the animations ids just disappeared so that might be a problem heh :slight_smile:

3 Likes

From the instances im talking bout^

3 Likes

I commented the ones that don’t have Asset Ids on them, and it works. Thanks for the help man @Y_VRN :slight_smile:

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.