Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make the LocalPlayer wait to load until contents loads?

I don't want any player to start playing the game before my content is loaded. In other words, I want something like

LoadMyContent()
--wait to finish loading, can take 5 - 10s
spawnPlayer()`

1 answer

If you mean the player's character, you could turn off 'Players.CharacterAutoLoad (Wiki article), and call Player:LoadCharacter() (which must be called server-side) when your game is ready to spawn the player.

2 comments

0

I turned off autoload and great, it doesn't load. Then as in the example, I've added a an event to load the character but it doesnt load, actually seems like the event never gets triggered. What's up?

0

I'm not sure, I don't know what the event you're using is and in what context.

This discussion is preserved as it was. New answers, comments, and votes are closed.