hi, since like 3 months or more and the animation only work in studio (local), it never work in-game
does anyone know why?
Have you got any more info about your problem ?
Can you show us your code? And the error response you get in the output log. (Unless it’s logical error)
Reason
Have you switched games? Because if you have, animations dont save over different games’s creators. If you have dev permissions in a group that the animation is under, you’ll be able to see the animation. But no one else will be. And you can only see it in studio.
Fix
If you have dev permissions in the group your animation is under, save it to the new game’s group. Or save it to your animations, that way, the animation will work on your games/the games the group is under.
i created it, abd no i didnt switched game
there are no errors, as it work in studio
did you publish it under your name?
Is it a group game or your own game? Issues sometime occur when you use your own animation in a group game.
For the code, use this (Make sure you insert an animation in this script):
local animation = script:WaitForChild("Animation")
local humanoid = script.Parent:WaitForChild("Humanoid")
local dance = humanoid:LoadAnimation(animation)
dance:Play()