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)