this is the script i have
01 | bool = script.Parent.Parent.Value |
02 | door = script.Parent.Parent |
03 |
04 | function openclose() |
05 | bool.Value = true |
06 | door.Transparency = 0.5 |
07 | wait() |
08 | door.CanCollide = false |
09 | print ( "lol" ) |
10 | wait() |
11 | while bool.Value = = true do |
12 | door.Transparency = 1 |
13 | door.CanCollide = true |
14 | bool.Value = false |
15 | print ( "lol2" ) |
16 | end |
17 |
18 | script.Parent.ClickDetector.MouseClick:Connect(openclose) |
do i need a bool value or another value? i'm confused help if you want.