01 | local isOpen = true |
02 |
03 | function open() |
04 | isOpen = true |
05 | script.Parent.D 3. Transparency = 0 |
06 | script.Parent.D 3. CanCollide = true |
07 | script.Parent.D 4. Transparency = 0 |
08 | script.Parent.D 4. CanCollide = true |
09 | script.Parent.D 1. Transparency = 1 |
10 | script.Parent.D 1. CanCollide = true |
11 | script.Parent.D 2. Transparency = 1 |
12 | script.Parent.D 2. CanCollide = true |
13 | end |
14 |
15 | function closed() |
I want CanCollide on at all times
D1,D2,D3 and D4 = Door 1, Door 2, Door 3 and Door 4.
Everything says true, which means Cancollide is on at all times. (put false to deactivate) I don't know the problem here...
Have you added a button to open these doors? Get a part, add clickdetector, put on the very top of script saying "function onclicked()" Make sure after the "end" of the second door set, it must have a mouseclick thing. Check through free models for that.