Sound:Stop() not working with ProximityPrompt?

Hello there devs! I’ve got a problem I hope some of you can solve. So, I’m trying to make it so a sound stops when a ProximityPrompt is triggered. However, it doesn’t seem to even stop it. There isn’t even an output message for it as well. Let me know if you have a solution. Thanks!

P.S. Code:

script.Parent.Triggered:Connect(function()
	game.Workspace["Game Music"]:Stop()
	game.Workspace.caveMusic:Play()
end)
1 Like

try Sound.Playing = False
strong text

ive tried that. still didnt work unfortunately.

where is the script and the sound?

the script is located inside the proximity prompt and the sound is located in workspace.

i think you can stop the sound from a local script, if you want to stop the sound in only one player use local script with exact same script but if you want to stop the sound in all users try FireAllClients() function with a remote event

1 Like

Seemed to work just fine! Thanks!

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