Heya, so I have been trying to make something hat will switch between my decals, as there is multiple screens and I can’t get the loop to work. I have tried several times and I find that it only effects one of the screens insteaf of all of them.
for i, v in pairs (script.Parent.Parent.Parent.TVs:GetChildren()) do
v.Decal.Texture = "http://www.roblox.com/asset/?id=6673940512"
wait(10)
v.Decal.Texture = "http://www.roblox.com/asset/?id=6675542594"
wait(10)
v.Decal.Texture = "http://www.roblox.com/asset/?id=6675545413"
wait(10)
v.Decal.Texture = "http://www.roblox.com/asset/?id=6675547067"
wait(10)
v.Decal.Texture = "http://www.roblox.com/asset/?id=6675549006"
wait(10)
v.Decal.Texture = "http://www.roblox.com/asset/?id=6675550558"
wait(10)
v.Decal.Texture = "http://www.roblox.com/asset/?id=6675552211"
wait(10)
v.Decal.Texture = "http://www.roblox.com/asset/?id=6675554709"
wait(10)
v.Decal.Texture = "http://www.roblox.com/asset/?id=6675561471"
wait(10)
v.Decal.Texture = ""
end
Coroutines essentially put code into its own thread so it has no conflict will happen in the script. It puts each of that code in their own thread so the waits don’t impact the main thread