#Loading Issues

1 messages · Page 1 of 1 (latest)

old meteor
#

The problem is that when my game loads, since the framerate is different for everyone, sometimes my game can load before workspace loads, causing a "findfirstchild" error, as it cannot find the child
The second problem is that sometimes the "startgame" bindableevent does not fire at all. This is possibly because in the script it fires, but the receiving end has not loaded yet, thus the game never starts.
I'm not asking for anyone to create a script for me, I just want to know how to fix this and what people usually do for their loading screens

pallid summit
#

Use :WaitForChild("")

old meteor
# pallid summit Use `:WaitForChild("")`

I was thinking if i should add another script that controls a value, then once evreything has loaded within the game, the value "gameloaded" or smth changes to true and then all the other scripts enable

#

would that be the best way to do it

pallid summit
#

It already exists

#

game.IsLoaded

old meteor
#

so i just do a check

#

game.IsLoaded.Changed?

pallid summit
#

No lmfao

old meteor
#

i dont have any experience in loading screens sry 😰

pallid summit
#

game.Loaded:Wait()

old meteor
#

i see

#

thx for the advice 🙂