Imgflip Logo Icon

i made this function some weeks ago

i made this function some weeks ago | image tagged in programming,roblox studio,roblox,lua | made w/ Imgflip meme maker
193 views 6 upvotes Made by Mr.CT-Spooky 4 days ago in Roblox
9 Comments
0 ups, 2d,
1 reply
whats the point
just make a fade function if anything
0 ups, 1d,
1 reply
that's easy 😏

you have to create this :

local part = game.workspace.part

local function fade()
for i = 1, 100, 1 do
part.Transparency += 0.01
end
end

fade()
0 ups, 4h,
1 reply
erm actually
you need to add a delay to each iteration of the loop or the effect will happen instantly
and also I meant fading between colors
0 ups, 4h
and in all seriousness who uses a loop instead of tweenservice
0 ups, 3d
I See What You Did There - RGB Color Wheel | image tagged in i see what you did there - rgb color wheel | made w/ Imgflip meme maker
0 ups, 3d
Imagination Spongebob Meme | image tagged in memes,imagination spongebob | made w/ Imgflip meme maker
0 ups, 4d,
1 reply
here the function parameters in the photo above explained :

color1 : it's a brickcolor value
color2 : same as color1
color3 : again, same as color1

sec1 : the amount of sec to wait as shown in the photo like it if it was set to 2 sec, it will change the color each 2 seconds

and finally!

num1 : it's a number that if the counter variable is equal to the number after each loop, (like for an example, if num1 was set to 3, then we'll have 3 loops)

P.S some examples are shown in bottom of the photo iyk.
0 ups, 4d,
1 reply
So a block that changes color?
0 ups, 4d
Yes
Created with the Imgflip Meme Generator