Animation not progressing after starting

Hi Guys,

I am attempting to create a custom animation for a player model however once the animation has started via script the time position and current weight get stuck at 0 as such the animation is not progressing.

Note that the animation variables for speed, length, IsPlaying and looped e.c.t all show correct values.

Please see script and player model below:

-- Very basic walking animation script by GnomeCode
local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")

-- Create new "Animation" instance
local kickAnimation = script:WaitForChild("Walk")

-- Load animation onto the animator
local kickAnimationTrack = animator:LoadAnimation(kickAnimation)

kickAnimationTrack.DidLoop:Connect(function()
	print("Did Loop")
end)

-- Play animation track
kickAnimationTrack:Play(0.1, 1, 1)
--kickAnimationTrack:AdjustSpeed(0.1)

-- If a named event was defined for the animation, connect it to "GetMarkerReachedSignal()"
kickAnimationTrack:GetMarkerReachedSignal("KickEnd"):Connect(function(paramString)
	print(paramString)
end)

1 Like