local Brick = script.Parent
function Brick.Transparency = (0) wait(.5) Brick.Transparency = (1) end
The problem is that you never call or name your function. To fix this, just do something like "function RandomFunction()", and then you also need to call your function. But you can do this 2 ways.
1:
1 | local Brick = script.Parent |
2 |
3 | function RandomFunction() --make sure to name your function. |
4 | Brick.Transparency = 0 |
5 | wait(. 5 ) |
6 | Brick.Transparency = 1 |
7 | end |
8 |
9 | RandomFunction() --make sure to call your function, otherwise it won't do anything! |
2:
1 | --You can not use a function, and it will work the same way. |
2 | local Brick = script.Parent |
3 |
4 | Brick.Transparency = 0 |
5 | wait(. 5 ) |
6 | Brick.Transparency = 1 |
PS: Use codeblock next time when posting scripts.