Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make this idle animation, for a tool, loop?

Asked by 5 years ago

Okay so i got this working local script for an idle animation that is for a tool. The animation completely works as intended, the only problem is that after a second or two the character returns back to the default idle. I think the problem is bad looping but i have no idea how to loop it properly. The looping i tried keeps resulting in the animation just straightup not working. I'm new to coding so i think i might just be missing something?

Anyways basically, how do i loop this idle animation for a tool?

local Human = script.Parent



Human.Equipped:connect(function()

local idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle)

idle.Priority = Enum.AnimationPriority.Action

idle:Play()



Human.Unequipped:connect(function()



idle:Stop()



end)

end)
0
looping was enabled also tails2049 0 — 5y
0
As long as if you enable Looping in the Animation Editor it should loop, You might have forgotten to decrease the max length of the animation, so it plays the empty side of the animation once the initial pins are done, So it looks like it's not looping but the animation is still going, there is actually no animation in the rest of it. HeroKajusa 0 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Try publishing your animation to roblox, then activate the function using an assetid.

Ad

Answer this question