task.spawn(function()
if pushForceVectors[currentAnimationClass] and pushForceVectors[currentAnimationClass] > 0 then
wait(animation.Length/2)
local velocity = lookingDirection * pushForceVectors[currentAnimationClass]
linearVelocity.VectorVelocity = Vector3.new(velocity.X, 0, velocity.Z)
wait(animation.Length/4)
linearVelocity:Destroy()
print("Destroyed linearVelocity")
end
print("Went through if-statement")
end)
print("Done thread #1")
For some reason it prints, “Went through if-statement” and “Destroyed linearVelocity” but it does not print “Done thread #1”