I want to make two parts to have a fade effect when a condition is met but it's not working
local one = script.Parent.Part1
local two = script.Parent.Part2
local c1 = 150
if script.Parent.Nexus.Value.Value == "true" then
for i=0, c1 do
one.Transparency = one.Transparency - 0.05
two.Transparency = two.Transparency - 0.05
wait()
end
for i =0, c1 do
one.Transparency = one.Transparency + 0.05
two.Transparency = two.Transparency + 0.05
wait()
end
wait()
end
