First of all, howdy, I'm new and trying to teach myself to code, so I'll be asking questions here a lot probably. This is my first ever script so please be gentle and patient with me.
So, basically this script is supposed to make a brick become gradually more transparent until it reaches full transparency, then slowly make the brick visible again, and repeat the process infinitely. It does not.
The script in question:
brick = game.workspace.Part
if
brick.Transparency == 0
then
repeat
brick.Transparency += .1
wait(.5)
until brick.Transparency == 1
wait(1)
elseif brick.Transparency == 1
then
repeat
brick.Transparency -= .1
wait(.5)
until brick.Transparency == 0
wait(1)
end

1 comment
I'm sorry! Since then I've changed the script a little more. I've inserted a tool, given it a handle and added my script into that. Now what I'm aiming for is for the tool to change transparency when "F" is pressed, and it isn't working once again.