if inputState == Enum.UserInputState.Begin and CoolDown == false and MultiScriptCoolDown.Value == false then
CoolDown = true
MultiScriptCoolDown.Value = true
Humanoid.AutoRotate = false
Humanoid.WalkSpeed = 0
Humanoid.JumpHeight = 0
Charging = true
local Charge1, Charge2, KiSound = Events:WaitForChild("KiCharge"):FireServer(Root,script.KiChargeSound)
ChargeAnim:Play()
task.wait(0.5)
ChargeAnim:AdjustSpeed(0.1)
delay(0,function()
while Charging == true do
if KiStat.Value < KiStatMax.Value then
wait(0.1)
KiStat.Value += KiStatMax.Value/25
else
wait(1)
KiStat.Value = KiStatMax.Value
end
end
end)
else
if Charging == true then
Charging = false
ChargeAnim:AdjustSpeed(1) ------<<<
wait(0.4)
MultiScriptCoolDown.Value = false
Humanoid.AutoRotate = true
Humanoid.WalkSpeed = WalkSpeed.Value
Humanoid.JumpHeight = 7.2
wait(1)
CoolDown = false
ChargeAnim:Stop()
end
end
The line ChargeAnim:AdjustSpeed(1) ------<<<
Doesn’t seem to adjust the speed when the input is pressed too fast “Note that the input is usually held”.
But when you release the key too quickly the animation doesn’t adjust its speed back to 1. How do I fix this?