I created custom r6 animations for my game, and had no trouble implementing them. However, I encountered an issue when the second idle played. I intended it to only play once before switching back to the first idle (like how you randomly swing your arms with the default animations), but instead it just looped that animation or stopped entirely without playing the first animation. I tried making them both not looping and both looping, but it didn’t have the wanted outcome. Does anybody know how I can make it so it switches back once over? Thank you!
Hah I figured it out just add this little snippet to the playAnimation() function
currentAnimTrack.Ended:Connect(function()
print(animName)
print(anim)
if animName == "idle" then
if anim.Name == "Animation2" then
currentAnimTrack = humanoid:LoadAnimation(animTable["idle"][1].anim)
currentAnimTrack:Play(0.01)
print("playing")
else
print("yoops")
end
end
end)```
I think if you renamed the last keyframe to “End” it would also switch
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.