I would suggest using a heatbeat or renderstepped wait function. wait() is slow and inconsistent and is a major source of lag.
wait()