function onTouched(Brick)
Brick = script.Parent
game.Workspace.Brick.Transparency = 1
wait(1)
game.Workspace.Brick.Transparency = 0
game.Workspace.Brick.Name = Worked
end
if game.Workspace.Brick.Name==Worked
then print("Worked! :D")
end
What is the problem here, It's supposed to make a brick go transparent then become nontransparent if you touch it.

2 comments
Actually, I got it to work not by that, I just needed a touch interest function.
^ I meant a connect: thing.