Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

best efficient way to fade a frame gui peformance wise?

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

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.