How can I get my object animation working?

OK. I don’t think it will fix the issue, though. It says it’s deprecated but it probably still works.