Skip to main content
Discovery icon for Retro Dev Discord server

Retro Dev

7,601 Online
44,248 Members
# retro-chat3 people

syncing timer values to gui

Decouple timer values from GUI text labels using replicated values or a single event trigger to prevent latency and client-side exploits.

  • Storing important values directly on client-side text labels is bad practice; values should exist separately and be read by the GUI
  • Repeatedly firing remote events every frame causes latency issues and script errors over time
  • Writing time to a NumberValue allows games to leverage built-in replication efficiently
  • Alternatively, fire a remote event once to send the initial duration, then run the countdown locally on the client
  • Syncing a server script updating a NumberValue to a local script reading into screen GUI text can experience issues if not configured properly
Summarized from recent messages, might be inaccurate

More conversations

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App