Lag Issue With While Loop

I have a bunch of server scripts that are doing while wait(5) do. These scripts are animating textures to move them and its animating a lot (200+). Whenever they are animated my players are experiencing major frame drops. Is there a way to use something like render stepped to prevent these kind of frame drops.

So you are updating the textures every 5 seconds on the server, correct?

Yes I am. I was doing just wait() instead of wait(5) before to lower lag but it didn’t help much.