brick = game.Workspace.Brick
function Spleef()
brick.Transparency = 0.1
wait(.1)
brick.Transparency = 0.2
wait(.1)
brick.Transparency = 0.3
wait(.1)
brick.Transparency = 0.4
wait(.1)
brick.Transparency = 0.5
wait(.1)
brick.Transparency = 0.6
wait(.1)
brick.Transparency = 0.7
wait(.1)
brick.Transparency = 0.8
wait(.1)
brick.Transparency = 0.9
wait(.1)
brick.Transparency = 1.0
wait(2)
brick.Transparency = 0
end
brick.Touched:connect(Spleef)
The problem with this script is that if you jump on it it will gradually fade, but if you continuously walk on the brick, you'd keep resetting the script so the brick's transparency would go back to 0 and then restart the function all over again. Is there any way tp simplify the script so that multiple touches will still allow the brick to gradually fade away?

2 comments
Thanks :3, just one question. What is fading = false?
Fading is the debounce that the script uses to tell if it is already in action or not.