Hello. I have the below script trying to play an audio, but it isn’t working for an unknown reason. There is no console error, the sound doesn’t give a “Failed to Load” error, or anything. I can’t get this audio to play.
If I use the in-game console to play it, nothing also happens.
AlarmService = game.Lighting:WaitForChild("BreachSounds",99999999) --Mute Inf Yeild
game.ReplicatedStorage:WaitForChild("CauseBreach").Event:Connect(function(SCP)
if SCP == "049" and (not WaitDetector) then
WaitDetector = true
script.Parent.Torso.CFrame = CFrame.new(NodePosition)
print("[AUTO BREACH V2.1] SCP-049 Has Breached Containment.")
AlarmService:WaitForChild("049Breach1",9999999):Play()
print("Found Name")
wait(60)
WaitDetector = false
end
end)
This script detects when a Module Script Fires an Bindable event, then plays an audio.
I have tried:
Moving the Audio Around (From Workspace, to Lighting)
I hear other sounds in my game just fine, but they are parented to a brick. According to the documentation on Sound, I should be able to parent it to a non-part just fine.
I can’t parent it to a brick because I want it to be global, AND because it’s a waste of memory to have it still try and render the audio behavior if I just spam 9’s in the distance slot.
Edit: Could this be a studio bug? If it is, I’m not able to submit a report, so no idea whattt I should do about this.