This script is supposed to turn the blocks transparency from 1, to 0.9. It does, but only once, my other script has when the block is clicked, it turns the blocks transparency back to 1, But the 1 to 0.9 script only works once, why is that so?
here is the 1 to 0.9 script
if
script.Parent.Transparency == 1 then
wait(5)
script.Parent.Transparency = 0.9
end
and here is the click script
function click()
script.Parent.Transparency = 1
end
script.Parent.ClickDetector.MouseClick:connect(click)
Thank you
