Game loaded not working

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

print("a")

i put this in a server script but it never prints it, how can i make sure that this is actually working

game:IsLoaded() works on the client. It checks whether the game has fully loaded into the player’s client. It won’t work on a server script, because the server is not a client.

Instead, you would want to put this code into a Local Script, inside of Replicated First.

1 Like

Make sure it is in a local script because, .Loaded only works on the client side.

1 Like