PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Loaded

This event fires on the client when the game finishes loading for the first time.

The Loaded event fires when all initial Instance|Instances in the game have finished replicating to the client.

Unless they are parented to ReplicatedFirst, LocalScript|LocalScripts will not run prior to this event firing. The following snippet, ran from a LocalScript in ReplicatedFirst, will yield until the game has loaded:

if not game:IsLoaded() then
    game.Loaded:Wait()
end

See also

  • DataModel/IsLoaded, a function that returns if the game is loaded or not
  • Instance/WaitForChild, a function which can be used to wait for an individual Instance to replicate without having to wait for the whole game to