You can write your topic however you want, but you need to answer these questions:
- 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.
- 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
- 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