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:
local Brick = script.Parent function RandomFunction() --make sure to name your function. Brick.Transparency = 0 wait(.5) Brick.Transparency = 1 end RandomFunction() --make sure to call your function, otherwise it won't do anything!
2:
--You can not use a function, and it will work the same way. local Brick = script.Parent Brick.Transparency = 0 wait(.5) Brick.Transparency = 1
PS: Use codeblock next time when posting scripts.