I have a door and two buttons. One button is supposed to make the door transparent, one button is supposed to return it back to its opaque state. Whenever I click one of the buttons, nothing pops up in the output.
Close button:
function onClicked()
Script.Parent.Parent.Door.Transparency = 0
Script.Parent.Parent.Door.CanCollide = true
end
Script.Parent.ClickDetector.MouseClick:connect(onClicked)`
Open button:
function onClicked()
Script.Parent.Parent.Door.Transparency = 1
Script.Parent.Parent.Door.CanCollide = false
end
Script.Parent.ClickDetector.MouseClick:connect(onClicked)
