I am interested. We need to use WaitForChild every time for in our script to make a chance for lua script-(Roblox Studio script) load something fast? How this process working, any idea?
It’s a local script, the player may have loaded into the game, but the map didnt load on the client,. because of the device’s performance/ roblox limitations etc, therefore “not existing” yet. thats why they used waitforchild so the script knows that if it didnt find the part, instead yield the script until it does, to prevent errors
Thank you, now I understand, why in my first try on yesterday, my script worked and right now, it’s stopped working because map actually didn’t loaded fully as you said. Now I put WaitForChild and it’s start working again! I was always questioning myself why WaitForChild needed for, lol.