Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

This Radio gp script does not work, the sound won't play?

So I am making a Radio gp and the scripts are not working. I want to make it to where everyone can hear the music.

--Local Script
script.Parent.MouseButton1Click:Connect(function()
	script.Parent.RemoteEvent:FireServer()
end)

--Server Script
script.Parent.RemoteEvent.OnServerEvent:Connect(function(player)
	local Radio = player.Character.Radio
	local input = script.Parent.Parent.Input.Text
local sound = Radio.Sound
sound.SoundId = 'rbxassetid://'..input
sound:Play()
end)

1 comment

0

What ended up working?

1 answer

✓ Accepted answer

Have the sound on the server. You are currently playing it only for the player. Also, are there any errors in the output? Add a print on the first line of the server script. Is that being called?

This discussion is preserved as it was. New answers, comments, and votes are closed.