I'm trying to make it so when I click the "OPEN" text button on the surface gui, the door will turn transparent, turn CanCollide off, and allow me to walk through it. I've done scripts like this before, and have been successful, this just doesn't work. Please help.
Door=game.Workspace.Door
function open()
print("Opening Door")
Door.Transparency=1
Door.CanCollide=false
wait(10)
Door.Transparency=0
Door.CanCollide=true
end
script.Parent.MouseButton1Down:connect(open)

1 comment
Thanks!