I have the block transparency set to 1. I have if you click it, the transparency decreases by 0.1, but that isn't working
here is the script i have (along with adjustments thanks to Adark)
function Click() script.Parent.Transparency = script.Parent.Transparency - 0.1 end script.Parent.MouseButton1Down:connect(Click)
Thanks! Merry Christmas! --P.S-- If you don't have anything to say that might help me, please don't say it at all (killerkill29), Thank you, Merry Christmas!
You actually have to set the Transparency, not just subtract from it!
function Click() script.Parent.Transparency = script.Parent.Transparency - 0.1 end script.Parent.MouseButton1Down:connect(Click)
You may want to put a click detector and put his
Brick = script.Parent function(onClick) Brick.Transparency = Brick.Transpareny 0.9 Brick.MouseButton1Down:connect(onClick)