My blast door doesn't open after closing. Why does this happen?
So, I have a blast door, but the script says shutter, that will not open after I close it. Why does this happen? Here's the script:
01 | local Teams = script.Parent.Teams |
02 | local Shutter = script.Parent [ "Security Shutters" ] |
03 | local TweenService = game:GetService( "TweenService" ) |
05 | [ "Prison Command" ] = Teams [ "Prison Command" ] .Value, |
06 | [ "Prison Administration" ] = Teams [ "Prison Administration" ] .Value, |
07 | [ "Emergency Response Team" ] = Teams [ "Emergency Response Team" ] .Value, |
08 | [ "Medical Staff" ] = Teams [ "Medical Staff" ] .Value, |
09 | [ "Military Police" ] = Teams [ "Military Police" ] .Value, |
10 | [ "Government Staff" ] = Teams [ "Government Staff" ] .Value, |
11 | [ "Facility Officers" ] = Teams [ "Facility Officers" ] .Value, |
12 | [ "Special Forces" ] = Teams [ "Special Forces" ] .Value |
15 | local tweeningInformation = TweenInfo.new( |
17 | Enum.EasingStyle.Linear, |
18 | Enum.EasingDirection.Out, |
24 | local doorclose = { CFrame = Shutter.CFrame + Vector 3. new( 0 ,- 9.83 , 0 ) } |
25 | local doortweenclose = TweenService:Create(Shutter,tweeningInformation,doorclose) |
26 | local dooropen = { CFrame = Shutter.CFrame + Vector 3. new( 0 , 9.83 , 0 ) } |
27 | local doortweenopen = TweenService:Create(Shutter,tweeningInformation,dooropen) |
30 | if Perms [ Plr.Team.Name ] then |
31 | if script.Parent.Open.Value = = false then |
32 | if script.Parent.Moving.Value = = false then |
33 | script.Parent.Open.Value = true |
34 | script.Parent.Moving.Value = true |
38 | script.Parent.Moving = false |
45 | if Perms [ Plr.Team.Name ] then |
46 | if script.Parent.Open.Value = = true then |
47 | if script.Parent.Moving.Value = = false then |
48 | script.Parent.Open.Value = false |
49 | script.Parent.Moving.Value = true |
53 | script.Parent.Moving = false |
59 | Shutter.Clicker.MouseClick:Connect(close) |
60 | Shutter.Clicker.MouseClick:Connect(open) |