local fullsound = workspace.Sound.FullSiteLockdownSound local bool = true local bool2 = true local clearance = { ["[SCP] Card-L5"] = true, ["[SCP] Card-L4"] = true, ["[SCP] Card-L3"] = false, ["[SCP] Card-L2"] = false, ["[SCP] Maksur"] = false, ["[SCP] Card-L1"] = false, ["[SCP] Card-Omni"] = true, ["[SCP] RS Card"] = false, ["[SCP] O5-2 Access Card"] = true } script.Parent.Parent.FullSiteLockdown.touched:connect(function(touch) if touch.Name == "Handle" and clearance[touch.Parent.Name] and bool then if workspace.Sound.FullSiteLockdownSound.IsPlaying == false then workspace.Sound.FullSiteLockdownSound.Volume = "1" fullsound:Play() wait(7) workspace.Sound.FullSiteLockdownSound.Playing = true workspace.Sound.FullSiteLockdownSound.Volume = "0" else wait(7) workspace.Sound.FullSiteLockdownSound.Playing = false workspace.Sound.FullSiteLockdownSound.Volume = "1" end end end)
local fullsound = workspace.Sound.FullSiteLockdownSound local bool = true local bool2 = true local clearance = { ["[SCP] Card-L5"] = true, ["[SCP] Card-L4"] = true, ["[SCP] Card-L3"] = false, ["[SCP] Card-L2"] = false, ["[SCP] Maksur"] = false, ["[SCP] Card-L1"] = false, ["[SCP] Card-Omni"] = true, ["[SCP] RS Card"] = false, ["[SCP] O5-2 Access Card"] = true } script.Parent.Parent.FullSiteLockdown.touched:connect(function(touch) if touch.Name == "Handle" and clearance[touch.Parent.Name] and bool then if workspace.Sound.FullSiteLockdownSound.IsPlaying == false then fullsound:Stop() wait(0.1) fullsound:Play() wait(8) fullsound:Stop() wait(1) workspace.Sound.FullSiteLockdownSound.Playing = true workspace.Sound.FullSiteLockdownSound.Volume = "0" if workspace.Sound.FullSiteLockdownSound.IsPlaying == true then wait(8) workspace.Sound.FullSiteLockdownSound.Playing = false workspace.Sound.FullSiteLockdownSound.Volume = "1" end end end end)
This seems to have fixed it. It wasn't stopping the sound for some reason