I want to make gui like this, but the only way I could do it is through script, cloning 100 frames
local frame = script.Parent.Frame
for i = 0.01, 1, 0.01 do
local PartFrame = frame.PartFrame:Clone()
PartFrame.Position = UDim2.fromScale(i, 0)
PartFrame.Transparency = i
PartFrame.Parent = frame
end
Is there any better and more optimised way to do so?
It is probably just a png image that has it’s own gradient, not much to it and you can find many on google or the toolbox. you can also make your own easily
@NoReal229 you can also increase transparency of the thing and add wait in between and then decrease the transparency of a fade gui then increase it in the middle. This isn’t proper lua but the structure would look a little like this for the first gui(the base
Part Transparency = 0
wait (10)
Part Transparency = 1
and the second script for the fade gui would look like this
Part Transparency = 1
wait (2)
Part Transparency = Part Transparency - .1
wait (2)
Part Transparency = Part Transparency - .1
wait (2)
Part Transparency = Part Transparency - .1
wait (2)
Part Transparency = Part Transparency - .1
wait (2)
Part Transparency = Part Transparency - .1
wait (2)
Part Transparency = Part Transparency + .1
wait (2)
Part Transparency = Part Transparency + .1
wait (2)
Part Transparency = Part Transparency + .1
wait (2)
Part Transparency = Part Transparency + .1
wait (2)
Part Transparency = Part Transparency + .1
wait (2)