How would I handle an animated image on the client?

Basically, I want to know an alternative to wait() on the client. Usually, for animated images i would change the texture, do a wait, then repeat. But on the client, I can’t do that, as that would freeze the entire script just for the texture to change. An idea i’ve had is using a timer and I would update the texture depending on what value that timer is, but it doesn’t sound very good.

You can use coroutines to not yield the main thread which it sounds like if your main problem. But regardless, wait() isn’t the best it’s better to use a heartbeat or renderstep wait.