hello i'm wondering whats the best way to fade a gui i know 2 ways to do it but i feel like one is more efficient
for i = 1,100 do script.Parent.BackgroundTransparency = script.Parent.BackgroundTransparency - 0.01 wait(0.010) end
or
repeat script.Parent.BackgroundTransparency = script.Parent.BackgroundTransparency - 0.01 wait() until script.Parent.BackgroundTransparency = 0
my guess is for do loop since it's so customizable but repeat could be better peformance wise