Custom Idle Animation Doesn't Play Right After Walking

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I’m trying to get a custom idle animation playing once you activated your ability
which has a smooth transition between idle animations and walking animations.

  1. What is the issue? Include screenshots / videos if possible!

The problem is, It does plays once you activated your ability but once you walked a bit and idled
the custom idle animation doesn’t play anymore.

Here’s a gif:

https://gyazo.com/29bab7bb2d897607caa00161cba9ef8a

  1. What solutions have you tried so far?

I’ve tried using Humanoid.Running. Once the speed is < 0.75, I’ll get the custom idle animation to play again but it didn’t work out. I’ve already tried looking on the dev forum but no luck though.

Sorry This is my first time writing a Topic.

This Is The Code:-

if Character:FindFirstChild("StandAvailable") then
			local StandAvailable = Character.StandAvailable
			local CheckForAvailable
			
			local IdleAnim = Humanoid:LoadAnimation(script.OwnerIdle)
			IdleAnim:Play(0.5)
			
			local CheckAnim = RunService.Stepped:Connect(function()
				if IdleAnim.IsPlaying ~= true then
					IdleAnim:Play()
				end
			end)
			
			local CheckHumanoidRunning = Humanoid.Running:Connect(function(speed)
				spawn(function()
					if speed > 0.75 then					
						IdleAnim:Stop()
					else
						IdleAnim:Play(0.1)
					end
				end)
			end)
			
			CheckForAvailable = StandAvailable.Changed:Connect(function()
				if StandAvailable.Value ~= true then
					CheckForAvailable:Disconnect()
					CheckAnim:Disconnect()
					IdleAnim:Stop(0.5)
					IdleAnim:Destroy()
				end
			end)
		end

Check if your Idle animation is looped. You may also have to alter the AnimationPriority as another animation might be playing at the same time and overriding it. Alternatively you could also get all the playing animation tracks and stop them whenever your idle animation plays.

1 Like