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

Is there a reasoning and/or a workaround to animations not playing after stopping another?

Asked by 1 year ago

As a rough example I'm talking about situations like this:

local runAnim = dummy.Humanoid:LoadAnimation(theRunAnimation)
runAnim:Play()

wait(3)

runAnim:Stop()
local idleAnim = dummy.Humanoid:LoadAnimation(theIdleAnimation)
idleAnim:Play()

I've been attempting to enhance NPC movement with animations for things like jumping and falling but I've noticed that situations like this often make the dummy just get stuck in the stock pose as soon as the running animation is stopped. Even if I preloaded all the animations before ever even running the function to play. I'm not sure if there's something I'm not aware of with this or if it's mostly a lag/roblox studio issue. I haven't been able to test in a normal server yet since for some reason roblox studio will no longer let me update the place after I overwrote one of my old, mostly empty places so I mostly just want to make sure it's not just because I'm stuck testing it in roblox studio atm.

Answer this question