Enxqi
(Enxquity)
February 11, 2021, 4:14pm
#1
Hey guys! So I have created a bird (pigeon to be exact) and i cant find a way to get any animations to play on it! The animations work fine in moon animator and i cant see why they dont work when being played.
https://gyazo.com/dde11b035688a8ef4934826eb1e4849c
This is how i’ve layed it out
MrchipsMa
(MrchipsMan)
February 11, 2021, 4:35pm
#2
u need to use Humanoid:LoadAnimation()
like this(insert a script in the model):
local BirdHumanoid = script.Parent.Humanoid
local Anim = BirdHumanoid:LoadAnimation(--[[animation path here [not animation id]]))
Anim:Play()
1 Like
Da_Fr0st
(Frost)
February 11, 2021, 4:40pm
#3
You need a script that activates the animation/pose. Like @MrchipsMa said above. eg.
local BirdAnimation = humanoid:LoadAnimation(script.parent..["Animations (Temp)"]..AnimationName)
BirdAnimation:Play()
If you want the official documentation the here is the link: Humanoid | Documentation - Roblox Creator Hub
Enxqi
(Enxquity)
February 11, 2021, 4:57pm
#4
Yeah i’ve done that to play the animation, it just wont work.
Da_Fr0st
(Frost)
February 11, 2021, 5:05pm
#5
send a picture of the script you used.
EXM_0
(yuno)
February 11, 2021, 5:33pm
#6
I’d suggest you use an Animation Controller instead of a humanoid when working with custom rigs
Enxqi
(Enxquity)
February 11, 2021, 5:34pm
#7
How would i exactly do that?
3o characters.
Enxqi
(Enxquity)
February 11, 2021, 5:35pm
#8
So a humanoid is completely unecessary? I’ll give it a try
EXM_0
(yuno)
February 11, 2021, 5:35pm
#9
I tried playing my an animation with humanoid for my ViewModel. It didn’t work, instead I used an animation controller, which worked.
Enxqi
(Enxquity)
February 11, 2021, 5:36pm
#10
So how would I run the animations? In a local script somewhere?
EXM_0
(yuno)
February 11, 2021, 5:37pm
#11
You can use local scripts. You just load it normally like how you load an animation with humanoid. But instead replace humanoid with AnimationController
Enxqi
(Enxquity)
February 11, 2021, 5:37pm
#12
Seems cool, i’ll give it a try.
Enxqi
(Enxquity)
February 11, 2021, 5:43pm
#13
Still doesn’t happen to work, this is the code I used just to test.
local char = workspace:WaitForChild("rokasalmonaitis1")
local controller = char:FindFirstChild("AnimationController")
local anim = controller:FindFirstChild("Walk")
while wait(1) do
local loadedAnim = controller:LoadAnimation(anim)
loadedAnim:Play()
print("play")
end
EXM_0
(yuno)
February 11, 2021, 5:46pm
#14
Hmm, that’s weird. Mind showing me the AnimationController?
EXM_0
(yuno)
February 11, 2021, 5:52pm
#16
Hmm, I don’t really know why it isn’t working. Sorry!
Enxqi
(Enxquity)
February 11, 2021, 5:53pm
#17
It’s fine! Thanks for the help eitherway.
Enxqi
(Enxquity)
February 11, 2021, 6:02pm
#18
Found a fix for it! Thanks for everyone’s help.
Urxpaly45
(Urx)
February 11, 2021, 6:02pm
#19
Could you explain what you did to fix it?
Enxqi
(Enxquity)
February 11, 2021, 6:07pm
#20
I had a model containing the character model parts. I just put the AnimationController in there and it decided to work.