generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Loading Bar

Previous Thread :: Next Thread 
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
19 Oct 2015 10:51 PM
I know some games have a loading bar and it says something like "Waiting for assets". What are they using to "wait" for these assets and make sure they're loaded until they actually let you play the game?
Report Abuse
PotatoForce is not online. PotatoForce
Joined: 16 Oct 2015
Total Posts: 42
19 Oct 2015 10:55 PM
I think they have a value, and have a waitforchild for everything, and once it has loaded it adds 1 to the value
Report Abuse
Bloxkes is not online. Bloxkes
Joined: 23 Sep 2015
Total Posts: 477
19 Oct 2015 11:02 PM
They use this:

http://wiki.roblox.com/index.php?title=API:Class/ContentProvider/PreloadAsync
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
20 Oct 2015 11:10 PM
How do they figure out which one has been loaded already in the table?
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
20 Oct 2015 11:18 PM
It could be that the are loading data using data store and after it loads they increase a value or something
Report Abuse
Sypr is not online. Sypr
Joined: 14 Feb 2013
Total Posts: 556
20 Oct 2015 11:26 PM
useing game:GetService("ContentProvider"):PreloadAsync() with workspace:getchildren()?
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
21 Oct 2015 12:29 AM
"useing game:GetService("ContentProvider"):PreloadAsync() with workspace:getchildren()? "

No.

It is used to load assets such as decals and sounds.
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
21 Oct 2015 02:43 AM
To make the bar, the foruma is...

For percentage:
local percent = math.floor(current/max * 100) .. "%"

For changing size:
local size = current/max * width_of_frame
Report Abuse
AmbientOcclusion is online. AmbientOcclusion
Joined: 10 Feb 2009
Total Posts: 1323
21 Oct 2015 04:32 AM
i believe he has something with the contentprovider service

he wants to wait until all assets are loaded for the game so ppl don't see no blank stuff

ya

there is a property like that some "RequestQueue" thing or something but not really sure if it exists, SHIFT+F6 shows it alrite
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image