Animation client or server

Do I need to play an animation from the client for optimizitation?

If you are talking about player animations then yes, there is no particular reason to play character animations on the server (considering the client-server model in Roblox).

When it comes to NPCs, you can play them on server just fine, but playing locally should be a good optimization practice. Keep in mind that non-player animations won’t replicate like player animations, so you’ll have to play on each client independently.