So I am a bit of a newb at scripting and tried out this script I made, but it doesn't seem to work. Could someone help figure it out for me?
local brick = Workspace.Decal -- Store a reference to the brick.
function onTouch(part) -- The function that runs when the part is touched. decal.Transparency = 0 wait(5) decal.Transparency = 1 end
brick.Touched:connect(onTouch) -- The line that connects the function to the event.
Thanks!
