How to know if a player has fully loaded?

How do I know if a player has fully loaded all things (their character, their guis, their DataStore values and folders,…)

Like in murder mystery 2, when you are fully loaded (black screen disappears), your name will be added in the player list.

Any ideas guys?

You can try something like

player.CharacterAppearanceLoaded:Wait()

Which will pause a script until the character fully loads.

Or, you can do something like…

repeat wait() until gameloadrequirementsblablabla == true

Not sure if this one is the best way to do it though, but the “until gameloadrequirementsblablabla == true” is like an if statement. In this case, “if gameloadrequirementsblablabla == true”.

1 Like

You will need multiple checks on the client, and you might be able to use a remote, attribute, or instance value to control things like the DataStore since that must be done on the server.

So, on the client, it could be something like:

local player = game:GetService("Players").LocalPlayer

local dataLoaded = player:WaitForChild("SomeBoolValueForData")

repeat task.wait(0.1) until game:IsLoaded()
player.CharacterAppearanceLoaded:Wait()
repeat task.wait(0.1) until dataLoaded.Value == true
-- can't use logic statement as it would just check whether the property exists
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.