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.

3 comments
Where are the scripts located?
Where are the scripts located?
inside a model that has a dooropen and doorclose.