I want to make my script wait until every child of workspace and PlayergGui loads, I've attempted to do this but it doesnt work, Please help.

workspace_children = game.workspace:GetChildren()

repeat wait() until workspace_children

print("Everything's loaded!")