johnvilleJoin Date: 2008-10-12 Post Count: 388 |
local contentToLoad = { "rbxassetid://421835266", "rbxassetid://421835422","rbxassetid://421835567","rbxassetid://421998346","rbxassetid://422002060" }
local startTime = tick()
game:GetService("ContentProvider"):PreloadAsync(contentToLoad)
local elapsedTime = tick() - startTime
the surface gui still flashes for the first time i mouse over it. :llllll |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
help |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
Help |
|
|
You have to wait for it to be loaded silly. |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
It does though but I still get this
https://www.roblox.com/games/413795971/WIP-Untitled-DS-Project-New-menu when you mouse over the buttons it flashes for the first time |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
HElp please |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
Plaese help |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
Help please! |
|
|
yay u listened to my suggestion
r+://393244197 r+://393244224 r+://393244262 |
|
|
local contentToLoad = { "rbxassetid://421835266", "rbxassetid://421835422","rbxassetid://421835567","rbxassetid://421998346","rbxassetid://422002060"}
for i,v in pairs(contentToLoad) do
game:GetService('ContentProvider'):Preload(v)
end
r+://393244197 r+://393244224 r+://393244262 |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
hmm, i tried that, didn't work buttons are still flashing. I have the script in WS btw :// |
|
2eggnogJoin Date: 2008-11-08 Post Count: 1351 |
"I have the script in WS btw"
Well, there's your problem.
|
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
Well it looks like its ideal for WS tbh, but it goes inside SP no? |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
? |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
heyulp |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
THIS isnt working omg someone please help |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
Hey guuys if you see this could you PLEASE helpp? |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
OK ITS A Local script in starter gui but it's still not working :// |
|
BriicksJoin Date: 2015-04-03 Post Count: 1796 |
local contentToLoad = {
"rbxassetid://421835266",
"rbxassetid://421835422",
"rbxassetid://421835567",
"rbxassetid://421998346",
"rbxassetid://422002060"
}
for i,v in pairs(contentToLoad) do
game:GetService("ContentProvider"):Preload(v)
end
Seems to work fine for me, I put it in a script in ServerScriptService, all tho I've never used this before idk where its suppose to be stored.
Super Fast Profit Finder: https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
Did not work, my main menu buttons still flash when i hover over it for the first time, like it didn't even preload the asset |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
Someone help |
|
johnvilleJoin Date: 2008-10-12 Post Count: 388 |
Please? |
|
TimeTicksJoin Date: 2011-04-27 Post Count: 27115 |
its suppose to be a local script in playergui
|
|
BriicksJoin Date: 2015-04-03 Post Count: 1796 |
TimeTicks, this is in a localscript in startgui but when i hover over the image and it changes it still takes a second to load the other image then after it loads it it works fine.
local contentToLoad = {
"http://www.roblox.com/asset/?id=421835328",
"http://www.roblox.com/asset/?id=421835266"
}
local startTime = tick()
game:GetService("ContentProvider"):PreloadAsync(contentToLoad)
local elapsedTime = tick() - startTime
print(string.format("took %d seconds to preload content", elapsedTime))
Super Fast Profit Finder: https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder |
|
TimeTicksJoin Date: 2011-04-27 Post Count: 27115 |
http://wiki.roblox.com/index.php?title=API:Class/ContentProvider
Look in the example. The images wont be fully loaded when the request size is still over 0
|
|