Basically, I have a rig that will play the other animation my friend made just fine, but will not play the animation I made ( In game), I get an error like
“Unable to load animation file”
What causes this? Does the animation need to be made in the game itself? Here is the code, even though its simple enough:
local m = script.Parent.Scene.Objects.Monster
local a = m.Humanoid:LoadAnimation(m.Animations.BadWalk)
a:Play()
I just have no idea why it works fine in studio tests, but in actual game play it breaks
Right click the actual Animation instance, and Publish it to Roblox. Open the URL for the published asset in a browser, and copy the Id. Once you have the Id try loading the animation like so:
local Monster = script.Parent.Scene.Objects.Monster
local Animation = Instance.new("Animation")
Animation.AnimationId = 'rbxassetid://PUT_YOUR_ID_HERE'
local AnimationTrack = Monster.Humanoid:LoadAnimation(Animation)
AnimationTrack:Play()
I think it’s still being reviewed? Animations cant be played until they’ve been “verified”, just like in the same way you cant see clothes that weren’t verified
I think i know what went wrong, I think I uploaded the animation to my profile instead of the group animations, do you think that would be an issue? (The game is in the group)
yes I think it was not on the profile or group that the game was created on I have had this issue in the past. You can’t use a friends animation etc… Has to be uploaded on same profile as the game
I’m having the same problem. I’m still not understanding how this can be fixed. In studio, testing the game the animation works like a charm. But when I go into game with it, the animation doesn’t load and my avatar is all stiff. If it’s because my game is linked with a group, how do I fix it?
I understand the problem now, but how do I achieve uploading the animation to the group? When I Exported the animation, it was obviously auto sent to the “Catalog” if that’s where I went wrong.