How would I simplify this?
local LSide = script.Parent.LSide
local RSide = script.Parent.RSide
local Top = script.Parent.Top
local Bottom = script.Parent.Bottom
while wait() do
for i=1,6 do
LSide.BackgroundTransparency = i/10
RSide.BackgroundTransparency = i/10
Top.BackgroundTransparency = i/10
Bottom.BackgroundTransparency = i/10
wait(0.1)
end
for i=6,1,-1 do
LSide.BackgroundTransparency = i/10
RSide.BackgroundTransparency = i/10
Top.BackgroundTransparency = i/10
Bottom.BackgroundTransparency = i/10
wait(0.1)
end
end

1 comment
Are all the sides a part of a single parent?