Trouble with sounds

  1. What do you want to achieve? Play a sound whenever a status value in ReplicatedStorage is set to a specific value.

  2. What is the issue? Announcement sounds do not work. All other SFX works.

  3. 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!

I dont really work with sound objects much but you could test it further with sound.IsPlaying() with like a task.delay after you play it if it returns true that means the sound is playing but probably misplaced somewhere i have no idea what the problem would be if isplaying returns false though

It did return true, but the problem is that its most likely not misplaced. It’s placed in a folder inside workspace, so I have no idea why it’s not playing

This might be a hassle but try creating a new sound thats parented to a part and compare it to a sound thats parented to a folder both of them on the client to see if theres any different behaviour between them. Sorry i cant do much bcuz im on my phone :sob:

Ok, I’m a little slow but I figured out that it is the client after all, I forgot to delete a line where it stops all sound when the value is changed :skull:

But thx for trying to help!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.