-
What do I want to achieve?
I need to make npc with looping animation
-
What is the issue?
In roblox studio animation working but in place, it didn’t.
-
What solutions have I tried
I tried:
- Humanoid:LoadAnimation()
- AnimationController:LoadAnimation()
- Animator:LoadAnimation()
They are all working in studio but isn’t working in place.
Here I use animator which is child of animation controller
local controller = script.Parent.AnimationController
local animator = controller.Animator
local dance = controller:LoadAnimation(game.ReplicatedStorage.Animation)
dance:Play()
dance.Stopped:Connect(function()
wait(dance.Length)
dance:Play()
end)
2 Likes
The animation working in Studio but not in its own instance is likely a result of the animation not being held by the same profile or group. Do you own the animation? If not, is it locked, or is it free to take? Is the game owned by your profile or group? Basically, the animation should be owned by the same holder that the game is in, or it should be free to take, so be sure to check for that.
1 Like
The animation is mine, the author of the place is another player.
So the author of the place needs to “get” my animation?
Yeah, the author needs to own that animation. The best way to give them the animation is by sending the animation as a file, and I assume you know how to go about doing that (otherwise let me know).
2 Likes
Thank you so much for help!