Animation track isn't playing even though the IsPlaying property is true

So I am making a game that picks a random Roblox user and displays their avatar.

I want there to be an animation like the classic event where the displayed avatar waves, then jumps and dances, but the R15 wave isn’t playing, despite the fact the rig is in R15 and the IsPlaying property is set to true.

This bug only occurred when I added an Animate script. I tried using ContentProvider:PreloadAsync, setting the priority, but it all didn’t work.

Code:

local waveAnim = animator:LoadAnimation(wave)	
waveAnim:Play()
print(waveAnim.IsPlaying)
waveAnim.Ended:Wait()
waveAnim:Play()
	
task.wait(0.25)
	
waveAnim:Stop()
	
humanoid.Jump = true
	
task.wait(0.5)
	
local dance = dances:FindFirstChild("Animation"..tostring(randomEmoteNumber))
local danceAnim = animator:LoadAnimation(dance)
danceAnim:Play()
danceAnim.Looped = true

Video:

1 Like

Check if the AnimationPriority is set to Action4, because at the start I can see her start to wave but it’s blended with the walk animation.

Also, the issue with the second one is probably that you converted it to a string, though I wouldn’t know since I haven’t used that function before :sweat_smile:

Just got a fix. This literally happens everytime.
Also yes, I did set the animation priority to Action4

if waveAnim.Length == 0 then
	repeat
		runService.Heartbeat:Wait()
	until waveAnim.Length > 0
end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.