I need help changing my backround from black to white gradually, no sudden changes.
if script.Parent.TextTransparency > 0 then script.Parent.Visible = false end
After this line of code is executed, I want to make sure the script detects that the text is invisible so it can start the transition. Anything that needs to be explained hopefully will be.
Place this inside the frame
for i = 0, 255, 3 do -- Change '3' To Increase/Decrease The Speed script.Parent.BackgroundColor3 = Color3.fromRGB(i, i, i) wait() end
There are many ways to do this, a common (and best way in my opinion) are loops! There are three main loops: repeat until, While True Do, and for.
The Code Below Demonstrates two types of loops In action with your frame below!
while script.Parent.TextTransparency > 0 then wait(0.1) -- Change to how fast you want to increase transparency script.Parent.TextTransparency = script.Parent.TextTransparency + 0.01 -- the higher / lower this is the more time it will take to fade. the higher it is the more spikey, the less it is the more smooth! I reccomend these settings end repeat wait(0.1) -- Change to how fast you want to increase transparency script.Parent.TextTransparency = script.Parent.TextTransparency + 0.01 -- the higher / lower this is the more time it will take to fade. the higher it is the more spikey, the less it is the more smooth! I reccomend these settings until script.Parent.TextTransparency = 1 -- if you want to make the object to appear and not dissapear, remove the + signs and change them to minus.
I hope this helped, If not please respond why and I'll try to check later
Sincerely, lolmarkdude2