function joel(hit) hit.Transparency = 1 end script.Parent.Touched:connect(joel) wait(5) game.Workspace.Part:Clone() function og(sup) wait(5) sup.Transparency = 0 script.Parent.Touched:connect(og) end
So what I want it to do is if something hits the brick it goes transparent first. Second it clones the same brick than the brick that is cloned gets touched by something it will change it's transparent to 0
script.Parent.Touched:connect(function(hit) hit.Transparency = 1 wait(5) clne = script.Parent:Clone() clne.Parent = game.Workspace clne.Touched:connect(function(hitt) hitt.Transparency = 0 end) end)
This would do what you're asking, what you were doing was specifying the connection statement before you ended the function..
script.Parent.Touched:connect(og) end
Hope it helped