Hello, I have made this script which changes the soundId to a certain sound then plays it but for some reason it doens't play? This is a server script btw.
game.ReplicatedStorage.Functions.SoundChange.OnServerEvent:Connect(function(plr, id) local radio = game.Workspace.FE.Radio[plr.Name].Radio.Sound radio.SoundId = "rbxassetid://"..id repeat wait(1) until radio.SoundId ~= nil wait(1) radio:Play() end)
The best way to play sound is to use the "Loaded" event before using the :Play()
function.
Here is an example of a simple sound playing script.
local audio = Instance.new('Sound', workspace) audio.SoundId = 'rbxassetid://1838742547' if not audio.IsLoaded then audio.Loaded:Wait() end audio:Play()