I am having an issue with playing a sound. Here is my code:
RadioEvent.OnServerEvent:Connect(function(Player,Message,Channel,Type) ConfigMessage(Player,Message,Channel) if Type == "panic" then game:GetService("SoundService").PanicButtonSound:Play() end if Type == "radio" then game:GetService("SoundService").RadioSound:Play() end end)
It works perfectly fine in local scripts but doesn’t work at all in server scripts. I have tried changing the location of the sound from Workspace to SoundService and even to the script’s parent, but the sound still seems to not play.
(fyi, ‘Type’ outputs ‘panic’)
My sound is up all the way, there are no errors and as I said, it works in local scripts but just not server scripts. Also, I used print earlier to check if the code is actually executing and it is. Any kind of help would be appreciated.
Thanks a lot!