like when you use a ClickDetector on a block and when you click it the transparent changes each time you click it.
I was thinking it was kinda script
1 | script.Parent.ClickDetector.MouseClick:Connect( function () |
2 | script.Parent.Transparency() |
3 | end ) |
Would be nice to fix, or make a script!
Adding transparency:
1 | script.Parent.Transparency = 0 |
2 | script.Parent.ClickDetector.MouseClick:connect( function () |
3 | script.Parent.Transparency = script.Parent.Transparency + 0.1 |
4 | end ) |
Subtracting transparency:
1 | script.Parent.Transparency = 1 |
2 | script.Parent.ClickDetector.MouseClick:connect( function () |
3 | script.Parent.Transparency = script.Parent.Transparency - 0.1 |
4 | end ) |
If there are issues, please comment. If this helped, upvote and accept answer. Thank you!