Okay. I want to create a chest and I would want create animation for this. But my chest not move and in the OutPut I recevied this message
Error:
10:21:24.366 - LoadAnimation requires the Animator object (Animator) to be a descendant of the game object
the rest:
10:21:24.367 - Stack Begin 10:21:24.367 - Script 'Plugin_-1.Project.AnimationEditorLuaWidgetsVersion.Code.DataModels.DataModelPlayState', Line 103 - upvalue loadAnimation 10:21:24.368 - Script 'Plugin_-1.Project.AnimationEditorLuaWidgetsVersion.Code.DataModels.DataModelPlayState', Line 165 - method recreateAnimationTrack 10:21:24.368 - Script 'Plugin_-1.Project.AnimationEditorLuaWidgetsVersion.Code.DataModels.DataModelPlayState', Line 197 - local callback 10:21:24.368 - Script 'Plugin_-1.Project.AnimationEditorLuaWidgetsVersion.Code.UtilityScripts.UtilityScriptEvent', Line 61 - method fire 10:21:24.369 - Script 'Plugin_-1.Project.AnimationEditorLuaWidgetsVersion.Code.DataModels.DataModelClip', Line 52 - method setLength 10:21:24.369 - Script 'Plugin_-1.Project.AnimationEditorLuaWidgetsVersion.Code.AnimationEditor', Line 233 - global exitPlugin 10:21:24.370 - Script 'Plugin_-1.Project.AnimationEditorLuaWidgetsVersion.Code.AnimationEditor', Line 253 - upvalue onEnableChanged 10:21:24.370 - Script 'Plugin_-1.Project.AnimationEditorLuaWidgetsVersion.Code.AnimationEditor', Line 309 10:21:24.370 - Stack End
Why? I have create Motor6D in my part to create a attachment. Here to view "Gyazo GIF"
So why I don't could create a animation?
This has come up before, EchoReaper had some workarounds that should work...
“The problem here is that the DataModel (“game” object) isn’t global, and since services are parented to DataModel, you can’t use services without having a DataModel. LoadAnimation and a number of other API members need one or more of those services, so they can’t function without a DataModel either.
I wish this weren’t an issue because parent restrictions like this require hacky workarounds (e.g. I have to either parent entities to workspace as soon as I create them to load animations instead of letting the script that created them do the parenting, or have the scripts ask the entity to set its own parent where I can load animations there.), but I guess we’re stuck with it for now.”
The suggestion solution for the above problem was to add (the example uses character, which of course would need to be defined earlier.)
while char.Parent == nil do char.AncestryChanged:wait() end