Basic double jump script that plays animation on second jump, problem is the animation. It simply will not play. It seems to just be this specific animation, I tried a roblox dance animation it works perfectly fine. I even set the animation to Action4
Any help would be greatly appreciated, thanks in advance!
[Sorry for the noob question I rarely run animations]
Code snippet [no error in output]
if character:FindFirstChild("Humanoid", true) and character.Humanoid.FloorMaterial == Enum.Material.Air and Can_DD == true then --and didnt double jump already and has enough stam
--double jump and sub stamina
print("met requirments 4 double jump")
Can_DD = false
--subtract stam for jump
local humanoid = character:FindFirstChild("Humanoid")
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/asset/?id=14560460640"
local animationTrack = humanoid:LoadAnimation(animation)
animationTrack:Play()
--character.Humanoid:ChangeState("Jumping")
wait(Double_Jump_Cooldown)
print("double jump ended")
Can_DD = true
end