-
What do you want to achieve? Play a sound whenever a status value in ReplicatedStorage is set to a specific value.
-
What is the issue? Announcement sounds do not work. All other SFX works.
-
What solutions have you tried so far? Did you look for solutions on the Creator Hub ?
I tried to use Announcement.Playing and that didn’t work. I added debug stuff and that didn’t help me. I looked through the forums and saw reports similar to mine, but none of them had a solution.
I’ve found nothing within the client that could interfere with the sound. In the client, it says that volume is 3 and playbackspeed is 1. So, as far as I know, this is not related to the client. No errors were found, and the print statements worked, but the sound didn’t play.
(FYI: sociostatussfx is the folder that contains folders for the SFX of each status. sociostatus is the value.)
function doDefaultSFX()
for _, v in pairs(sociostatussfx.SFX:GetChildren()) do
v:Play()
end
end
sociostatus:GetPropertyChangedSignal("Value"):Connect(function()
for _, v in pairs(sociostatussfx:GetDescendants()) do
if v:IsA("Sound") then
v:Stop()
end
end
if sociostatus.Value == "jw" then
print("playing announcement")
jw.Announcement:Play()
print("played")
task.wait(14)
doDefaultSFX()
else
ajw.Announcement:Play()
task.wait(17)
ajw.AJStarting:Play()
task.wait(13)
doDefaultSFX()
end
end)
Any help would be appreciated!