Refreshing ents

Is there a way to have entities refresh themselves after a set period of time?

(Sorry I’m a noob at lua)


Define refresh. What does it entitle?

as in, every x amount of seconds, the code for it will refresh.

i currently have a code to have a entity change color randomly, but it only works once when the server starts.

You could use a hook like tick or think. Or you could use a timer.

do you think you can provide an example of how to do it in think?