So I am making something like a reception desk. The person manning the desk can click the window to make it transparent or not. It would also label "Click to start(/end) interviews" to prompt the player to open the window if they are ready for an interview.
function onClicked(playerWhoClicked)
script.Parent.Transparency = 1
script.Parent.Parent.TurnOn.Decal.Transparency = 1
function onClicked(ClickedAgain)
script.Parent.Transparency = 0
script.Parent.Parent.TurnOff.Decal.Transparency = 0
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
I don't know how to make it work. It would go transparent, but if you click it again, it wouldn't work.

5 comments
:P
I meant you forgot to run the script
wait lol I meant you forgot to run the 2nd function
You can edit your answers and comments and stuff if you need to correct something, you know.
I did