Skip to main content
Event callbacks run frequently. Keep tick, packet, and render callbacks short. Use Script.throttle for periodic work:
Use timers for repeated work that does not need every tick:
Use Script.thread only for work that needs blocking waits. Do not call Time.sleep in event callbacks.