I need scripts to yield until player data has loaded in. The scripts are both client and server.
How would I go about getting the scripts to yield until data has loaded in?
I need scripts to yield until player data has loaded in. The scripts are both client and server.
How would I go about getting the scripts to yield until data has loaded in?
I usually set up a RemoteEvent (or BindableEvent, depending on what you need) that the script handling player data fires when data is loaded.
At the top of my scripts, I put:
local event = -- Path to your event
event.OnClientEvent:Wait() -- Change to .Event if BindableEvent
Hope this helps,
Fizzitix