I have a door opening script and it's not working.
Script:
dooropen = script.Parent.Opened doorclose = script.Parent.Closed doorclose.Click:connect(function() doorclose.CanCollide = false doorclose.Transparency = 1 dooropen.CanCollide = true dooropen.Transparency = 0 wait(5) doorclose.CanCollide = true doorclose.Transparency = 0 dooropen.CanCollide =false dooropen.Transparency = 1 end)
Thank you in advance.
You need a click detector in doorclose. Also do this:
dooropen = script.Parent.Opened doorclose = script.Parent.Closed doorclose.ClickDetector.MouseClick:connect(function() doorclose.CanCollide = false doorclose.Transparency = 1 dooropen.CanCollide = true dooropen.Transparency = 0 wait(5) doorclose.CanCollide = true doorclose.Transparency = 0 dooropen.CanCollide =false dooropen.Transparency = 1 end)