setTick

This allows you to create a timer that ticks every game frame / server tick. It can be used client-side or server-side acting like a loop that runs forever unless cleared.

Syntax

setTick(() => {});

Examples

setTick(() => {
    console.log("I'm running every frame/tick!");
});