lua event
--note : a event is going to active something when is done. the event is gonna fire.
--this time we will do the simplest event. touched
local brick = script.parent
brick.Touched:Connect(function() --when touched the funtion will fire
brick.Transparency = 0.5 --for now we do transparency.
--you delete it and do anything you want.
--wanna learn more? on youtube there is more. use alvinblox for a example