local something = ...something here... if something ~= nil then script goes here end
I see that there are quite a few Roblox games with loading screens, but do those loading screens actually do anything, or are they just there for show? Is there a way to detect if assets have actually loaded or anyway to have a loading screen function in anyway besides just being there to make the game's intro look nice? Can someone link me to some resources that teach this sort of thing if it is possible?
I know that this waits until something is there to continue, but even if the game sees that a decal or sound is there, doesn't mean that the texture or soundId will actually load, so it doesn't really mean that the loading screen does anything... Any ideas or resources I can see? Please help!
Most of the time, it's just for show. However, there are ways to have your script wait for certain assets to load, which in most cases is a good idea depending on what's in your game.
The ContentProvider
service is probably the best source (if not only) source to achieve this from. There is a documented page for it on the wiki you can find here: http://wiki.roblox.com/index.php?title=API:Class/ContentProvider so I'm not going to cover it's methods.
I also HIGHLY recommend using a local script w/ the ReplicatedFirst
storage if you are to go along with this. You can find why that's useful here: http://wiki.roblox.com/index.php?title=API:Class/ReplicatedFirst