while wait() do logo.ImageColor3 = Color3.new(0.1, 0.1, 0.1) wait() logo.ImageColor3 = Color3.new(0.2, 0.2, 0.2) wait() logo.ImageColor3 = Color3.new(0.3, 0.3, 0.3) wait() logo.ImageColor3 = Color3.new(0.4, 0.4, 0.4) wait() logo.ImageColor3 = Color3.new(0.5, 0.5, 0.5) wait() logo.ImageColor3 = Color3.new(0.6, 0.6, 0.6) wait() logo.ImageColor3 = Color3.new(0.7, 0.7, 0.7) wait() logo.ImageColor3 = Color3.new(0.8, 0.8, 0.8) wait() logo.ImageColor3 = Color3.new(0.9, 0.9, 0.9) wait() logo.ImageColor3 = Color3.new(1, 1, 1) wait() logo.ImageColor3 = Color3.new(0.9, 0.9, 0.9) wait() logo.ImageColor3 = Color3.new(0.8, 0.8, 0.8) wait() logo.ImageColor3 = Color3.new(0.7, 0.7, 0.7) wait() logo.ImageColor3 = Color3.new(0.6, 0.6, 0.6) wait() logo.ImageColor3 = Color3.new(0.5, 0.5, 0.5) wait() logo.ImageColor3 = Color3.new(0.4, 0.4, 0.4) wait() logo.ImageColor3 = Color3.new(0.3, 0.3, 0.3) wait() logo.ImageColor3 = Color3.new(0.2, 0.2, 0.2) wait() logo.ImageColor3 = Color3.new(0.1, 0.1, 0.1) wait() logo.ImageColor3 = Color3.new(0.2, 0.2, 0.2) wait() logo.ImageColor3 = Color3.new(0.3, 0.3, 0.3) wait() logo.ImageColor3 = Color3.new(0.4, 0.4, 0.4) wait() logo.ImageColor3 = Color3.new(0.5, 0.5, 0.5) wait() logo.ImageColor3 = Color3.new(0.6, 0.6, 0.6) wait() logo.ImageColor3 = Color3.new(0.7, 0.7, 0.7) wait() logo.ImageColor3 = Color3.new(0.8, 0.8, 0.8) wait() logo.ImageColor3 = Color3.new(0.9, 0.9, 0.9) wait() logo.ImageColor3 = Color3.new(1, 1, 1) wait() logo.ImageColor3 = Color3.new(0.9, 0.9, 0.9) wait() logo.ImageColor3 = Color3.new(0.8, 0.8, 0.8) wait() logo.ImageColor3 = Color3.new(0.7, 0.7, 0.7) wait() logo.ImageColor3 = Color3.new(0.6, 0.6, 0.6) wait() logo.ImageColor3 = Color3.new(0.5, 0.5, 0.5) wait() logo.ImageColor3 = Color3.new(0.4, 0.4, 0.4) wait() logo.ImageColor3 = Color3.new(0.3, 0.3, 0.3) wait() logo.ImageColor3 = Color3.new(02, 0.2, 0.2) wait() logo.ImageColor3 = Color3.new(1, 1, 1) wait() button.Visible = true break end
Ultimately, you want it to go up from (.1, .1, .1)
to (1, 1, 1)
, in .1
increments, and then back down the same way.
Doing this requires 2 separate for loops.
Lastly, you want to repeat the whole process above 3
times, which can be done by engulfing the whole thing in yet another for loop.
for loop structure
for x = startValue, endValue, increment do end
the increment is defaulted to 1
if not specified
Below I make a few variables at the top, just for editing convenience.
local small = .1 local big = 1 local inc = .1 local dec = -.1 local reps = 3 --this loop repeats everything in it 3 times for _ = 1, reps do -- this loop goes from .1 to 1 for c = small, big, inc do logo.ImageColor3 = Color3.new(c, c, c) wait() end -- this loop goes from 1 to .1 for c = big, small, dec do logo.ImageColor = Color3.new(c, c, c) wait() end end button.Visible = true
Hi. Use for loops, or tweeningservice, but i'm not sure if that works for color3.
for i = 0,1,0.1 do -- the first parameter is the "start", the second is the "end", and the third is the increment, or how much you want it to increase each "time", change it to whatever you seem fitting. logo.ImageColor = Color3.new(i,i,i) end wait(0) -- how many seconds you'd like for i = 1,0,-0.1 do -- again, but we are going "down" now. logo.Imagecolor = Color3.new(i,i,i) end
This should work. Thanks.