Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

This script does not seem to run. I debugged it and it seems like it wasn't even touched?

Asked by 7 years ago
Edited 7 years ago

I get no errors when I test this. Any Ideas?

local ContentProvider = Game:GetService("ContentProvider")

-- load a bunch of assets
local assets = {2253543, 2434541, 5133543, 2423433}
for _, asset in ipairs(assets) do
    ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. asset)
end

-- wait for them to complete
while ContentProvider.RequestQueueSize > 0 do
    wait(0.1)
end

print("was loading")

local bloom = game.Lighting:WaitForChild("Bloom")
local blur = game.Lighting:WaitForChild("Blur")
local sunrays = game.Lighting:WaitForChild("SunRays")

repeat wait(.1) until bloom
repeat wait(.1) until blur
repeat wait(.1) until sunrays

--Make sure this does NOT run again
script.Parent.Parent.Parent.IntroRan = true
script.Parent.Parent.SkipCutsceneGui.Skip.Visible = true
print("visibulity set to true")
script.Parent:Destroy()

Answer this question