I'm trying to make a door that makes all the parts in it so their CanCollide property is false. I tested it out, but it won't work. The error also doesn't show up in the output. Here's the script:
door = script.parent.parent
frame = door.Frame
framewindow = door.FrameWindow
framewindow2 = door.FrameWindow2
pane = door.Pane
function opendoor()
frame.CanCollide = false
framewindow.CanCollide = false
framewindow2.CanCollide = false
pane.CanCollide = false
frame.Doorbell:Play() -- Oh yea, this part plays an audio on Touched.
end
frame.Touched:connect(opendoor)
Anyone have a solution? I feel like the Output is failing me.

1 comment
Thanks.