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()
