Roblox Game Loaded Engine Errors

Game:IsLoaded() always returns true even if the game hasn’t finished loading.

Sorry but are the Roblox Devs trying to trick people into thinking the game is loaded when it is not?
image
Top one is printing Game:IsLoaded()
Bottom is printing a variable that is changed when Game:Loaded() fires. If it is loaded it is supposed to be set to true.

It’s possible that your issue is a result of the game already being loaded when the local script executes.

According to the docs:
“The Loaded event fires when all initial Instances in the game have finished replicating to the client.
Unless they are parented to ReplicatedFirst, LocalScripts will not run prior to this event firing.”

This is the example implementation:

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

-- your code here

In the future, if you can provide your actual code, it would be easier to address your exact issue. I’ve had to assume most of what you’re doing here so I apologize if it’s not relevant to what you’re actually asking.

I wish this was more commonly known: DataModel | Documentation - Roblox Creator Hub

LocalScripts outside ReplicatedFirst (assuming they are in a valid container to run on) will only run once the game has loaded. This means all Instances in the game that should be available to the client has finished replicating.

However, this excludes things like server containers (since they are server-only) and the workspace if StreamingEnabled is true, as those will load as the character moves around. This also does not mean all assets (like images, sounds, etc.) will be instantly available, as those would have to either be preloaded on the client or loaded as it is used (assets will be downloaded on the client and the speed depends on their connection).

As for your screenshot, it is hard to tell what your variables actually are, and I’m positive you are doing something wrong with your bottom variable.

1 Like

Just tested this in replicatedfirst using a client script and game:IsLoaded() returns false.