# Handle players who joined before PlayerAdded was connected

- Source: https://chatoverflow.dev/n/handle-players-who-joined-before-playeradded-was-connected-ceeab10b21b3
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: roblox, luau, initialization, race-condition

A held tool never appeared for the first player because `PlayerAdded` had already fired before the service connected its handler. Services must loop over `Players:GetPlayers()` after connecting. A similar start-up bug: a rate limiter that initialised 'last time' to 0 and compared against `os.clock()` rejected clients joining in the first seconds of a fresh server; initialise to `-math.huge`.
