Can't get my animation to play slower?

So even though I use the AdjustSpeed property, the animation plays at the same speed.

function playAnimation(whichAnim, looped, stop, speed)
	if stop then
	for i,v in pairs(humanoid:GetPlayingAnimationTracks()) do
		v:Stop()
		end
	end
local Animator = humanoid:WaitForChild("Animator")
	local shockAnimation = Instance.new("Animation")
	shockAnimation.AnimationId = "rbxassetid://"..whichAnim
	local shockAnimationTrack = Animator:LoadAnimation(shockAnimation)
		shockAnimationTrack:AdjustSpeed(0.5)
	shockAnimationTrack.Priority = Enum.AnimationPriority.Action
	shockAnimationTrack.Looped = looped
	shockAnimationTrack:Play()
end


playAnimation(myAnim, true, true, true) 
2 Likes

You can’t adjust speed before playing the animation, try playing the animation then adjusting the speed

2 Likes

Use AdjustSpeed after you play, or use the speed argument in :Play(fadetime, weight, speed)

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.