So I have a data loading bug where sometimes the tool I want to give to a player doesn’t give mainly because the value doesn’t change fast enough when retrieving the data for the player. How can I properly create a synced playeradded/characteradded function to where it waits for data before giving the specific tool?
(I’d send code but it’s over 1000 lines for each script the datastore is a module, the other is a regular script)
Sounds like you could incorporate a more modularised system or BindableEvents rather than relying on the unpredictability and unguaranteed order of respective operations of your scripts running. This is not a bug or anything reasonably out of your control, but unfortunately the result of your implementation.
To a player it’s a bug, I wasn’t implying that it’s Roblox’s fault to the matter. What you stated sounds a bit confusing do you think you could elaborate in a more understandable way?