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
|
  |
| 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
|
  |
| Joined: 30 Jun 2012 |
| Total Posts: 10044 |
|
|
| 02 Feb 2015 01:28 PM |
Loads, once loop finishes. Logic eh? |
|
|
| Report Abuse |
|
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
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
| |
|
| 02 Feb 2015 02:05 PM |
| you need to use a coroutine for the repeat loop |
|
|
| Report Abuse |
|
SLY3
|
  |
| Joined: 10 Jul 2008 |
| Total Posts: 1700 |
|
| |
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 |
|