I made a Ad screen and I made the textures fade.
However, the script doesn’t repeat itself whenever i do
while true do and then the script
local A = script.Parent.BlackLivesMatter
local B = script.Parent.Ad
wait(5)
for v = 0, 1, .1 do
A.Transparency = v
wait()
end
for x = 1, 0, -.1 do
B.Transparency = x
wait()
end
wait(5)
for x = 0, 1, .1 do
B.Transparency = x
wait()
end
for v = 1, 0, -.1 do
A.Transparency = v
wait()
end
So I took your code, and I didn’t see a while true do inside of it, so I just added one as so:
local A = script.Parent.BlackLivesMatter
local B = script.Parent.Ad
wait(5)
while true do --loops through code forever
for v = 0, 1, .1 do
A.Transparency = v
wait()
end
for x = 1, 0, -.1 do
B.Transparency = x
wait()
end
wait(5)
for x = 0, 1, .1 do
B.Transparency = x
wait()
end
for v = 1, 0, -.1 do
A.Transparency = v
wait()
end
end
This should work, but let me know if you have further issues.