ok so im making a smart house and in the smart house the hole house is going to be controlled by a touch seen or more than one. anyway here is my script
function blind ()
if workspace.window1.Transparency == 0 then workspace.window1.Transparency = 0.6 elseif
workspace.window1.Transparency == 0.6 then workspace.window1.Transparency = 0
end
if workspace.window2.Transparency == 0 then workspace.window2.Transparency = 0.6 elseif
workspace.window2.Transparency == 0.6 then workspace.window2.Transparency = 0
end
end
script.Parent.MouseButton1Click:connect(blind)
so im trying to make a toggle script where when i click the button once it chages the windows transparency to 0 and then when i click it again it changes it to 0.6 well it changes it to 0 but it wont change is to 0.6.

2 comments
Could you please indent & have your code readable? It's hard to read & understand what's going on.
it is.....