I already got this answered, but all of a sudden there was an error that popped up. Here is what I have:
Script:
local bin = script.Parent
local decal = bin.Decal
local MainSlides = {"http://www.roblox.com/asset/?id=154539172", "http://www.roblox.com/asset/?id=177042272",
"http://www.roblox.com/asset/?id=157119414", "http://www.roblox.com/asset/?id=175271294",
"http://www.roblox.com/asset/?id=198632478"}
local SoundsForSlides = {12222030} -- Add more if you wish, will play with the slide
local function runTable(table, delayTime)
for i=1,#table do
decal.Texture = table[i]
wait(math.random(2, 5)) --The time can vary from 2 to 5 seconds.
if SoundsForSlides[i] then
SoundsForSlides[i]:Play() --If this doesn't work tell me
end
end
end
while wait() do
runTable(MainSlides, WaitTime)
end
Error
20:30:45.135 - Workspace.Part.SlideScript:15: attempt to index field '?' (a number value)

2 comments
This code doesn't really make sense... Can you explain what you were trying to do with it?
I wanted it to play the audio while the slides is going on