How do I add and play sounds for when it starts after the countdown? Also I wanted to know how do I add songs to some of them, like the first three would be bruno mars songs, and the other ones would be gangnam style song. And when it is done, the countdown starts over and does the same. Just like this script, but with sounds. How do I do it? This is the script (Thank you BlueTaslem):
local bin = script.Parent
local decal = bin.Decal
local MainSlides = {
{'http://www.roblox.com/asset/?id=213163470', 15},
{'http://www.roblox.com/asset/?id=213486920', 3},
{'http://www.roblox.com/asset/?id=157656296', 3},
{'http://www.roblox.com/asset/?id=213486967', 3},
{'http://www.roblox.com/asset/?id=151111211', 3},
{'http://www.roblox.com/asset/?id=213487020', 3}
}
function getNumTabs(tab)
local num = 0
for i,v in pairs(tab) do num = num + 1 end
return num
end
function runTable(tab)
for i = 1,getNumTabs(tab) do
local currentTab = tab[tostring(i)]
decal.Texture = currentTab[1]
wait(currentTab[2])
end
end
-- (Define everything needed for runTable here, of course)
local c = game.Workspace.Countdown.SurfaceGui.TextLabel
function countDown()
for timeLeft = 20, 0, -1 do
-- Replaces the 40 lines of repetition!
c.Text = timeLeft
wait(1)
end
c.Text = "Movie has started!"
end
while true do
countDown()
runTable(MainSlides)
end

3 comments
Thanks bro. :D
They said there is an error: 10:56:37.458 - Workspace.Part.Script:24: attempt to index local 'currentTab' (a nil value)
Well I answered you problem. You just asked for me to add the songs for you. (I can't help you right now. I have to go but I'll be back.)