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
 

Percentage

Previous Thread :: Next Thread 
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
14 Nov 2015 11:48 AM
How do people make percentage loading screens?

like "10% of assets loaded", "20% of assets loaded", "30% of assets loaded"

etc.
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
14 Nov 2015 12:43 PM
b1
Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
14 Nov 2015 12:45 PM
make a gui then a frame in it then a text label and do whatever design then:

for i = 1, 100, 10 do
gui.Frame.Textlabel.Text = i
wait(2)
end
Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
14 Nov 2015 12:45 PM
my bad,
blah.text = i .. %
Report Abuse
Cizox is not online. Cizox
Joined: 25 Dec 2009
Total Posts: 42220
14 Nov 2015 12:46 PM
numberOfAssetsLoaded / totalNumberOfAssets .. "% loaded"
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
14 Nov 2015 01:07 PM
yeah i'm having trouble finding the total amount of assets
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
14 Nov 2015 01:16 PM
Just put all the assets you want to load in a table, 100*requestqueuesize/#assets
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
14 Nov 2015 01:47 PM
Like this?

local ContentProvider = game:GetService("ContentProvider")

local function LoadAssets(AssetList)
local Tot = 0
for _, AssetId in pairs(AssetList) do
ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
Tot = Tot + 1
print((Tot/8) * 100)
end
end

LoadAssets({2253543, 2434541, 5133543, 2423433, 41143243, 2453865, 21433365, 2154549})




Output:

12.5
25
37.5
50
62.5
75
87.5
100
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