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
 

Why the image only shows up when everything is loaded?

Previous Thread :: Next Thread 
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
02 Feb 2015 09:30 AM
Why it the "Loading..." image shows up only then, when everything is already loaded? Noone cant even see "Loading..." image because the "Ready" image already shows up. How do i fix this? Btw here's the script:

Assets = {200882312,200881149,200880946,200831086,200512822,167319835,131276277,153838998,198753164,166196557,204327463,205183959,205186658,205189357,205193125
,205858550,205865409,205865454,205865499,207454628,207454692,207454851,159538564,161485874,182579255,177472347,172323650,174766799,144997347,146259858,
142572524,143714652,152356759,159812665,144425417,200831086}

local ContentProvider = game:GetService("ContentProvider")

for _, asset in ipairs(Assets) do
game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=" .. asset)
end
repeat
print("Loading!", math.random()) --Spam the output so we can see if it is loading.
wait(0.2)
until
(ContentProvider.RequestQueueSize == 0)

script.Parent.LoadingProcess.Value = 1
script.Parent.BugCheck:Destroy()
script.Parent.Image = "http://www.roblox.com/asset/?id=200881149"
for i = 1,50 do
script.Parent.Hint.TextStrokeTransparency = script.Parent.Hint.TextStrokeTransparency +0.02
script.Parent.Hint.TextTransparency = script.Parent.Hint.TextTransparency +0.02
wait()
end
script.Parent.Hint.Text = "Press P to start!"
script.Parent.Play.Disabled = false
for i = 1,50 do
script.Parent.Hint.TextStrokeTransparency = script.Parent.Hint.TextStrokeTransparency -0.02
script.Parent.Hint.TextTransparency = script.Parent.Hint.TextTransparency -0.02
wait()
end
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
02 Feb 2015 01:27 PM
Bump. I will give you water if you answer me, i know you guys are thirsty!
Report Abuse
HexC3D is not online. HexC3D
Joined: 30 Jun 2012
Total Posts: 10044
02 Feb 2015 01:28 PM
Loads, once loop finishes.
Logic eh?
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
02 Feb 2015 01:33 PM
I know that, but how to make it so the image is forced to load first and then run the thing which lets other things to load?
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
02 Feb 2015 01:59 PM
Bump 1
Report Abuse
devWarlord is not online. devWarlord
Joined: 30 Dec 2013
Total Posts: 22
02 Feb 2015 02:05 PM
you need to use a coroutine for the repeat loop
Report Abuse
SLY3 is not online. SLY3
Joined: 10 Jul 2008
Total Posts: 1700
02 Feb 2015 02:07 PM
^ true
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
02 Feb 2015 02:21 PM
Ugh, the script works fine with loading. I want to know how do you make it to force so it loads the image first?
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