Why sound could not be heard by other players?
-- LocalScript
local sound = game.ReplicatedStorage.Boombox.Radio.Sound
local Pitch = script.Parent.MusicFrame:findFirstChild("Pitch")
local LOP = script.Parent.MusicFrame:WaitForChild("LOP")
sound.Parent = game.Players.LocalPlayer.Character.Boombox
local input = script.Parent.MusicFrame:WaitForChild("Input")
local fr = script.Parent:WaitForChild("MusicFrame")
local Remote = game.ReplicatedStorage:WaitForChild("RemoteEvent")
fr:WaitForChild("Play").MouseButton1Click:connect(function()
sound.Pitch = Pitch.Text
Remote:FireServer(sound)
print("YO")
end)
fr:WaitForChild("Stop").MouseButton1Click:connect(function()
sound:Stop()
end)
fr:WaitForChild("LOP").MouseButton1Click:connect(function()
if sound.Looped == false then
sound.Looped = true
script.Parent.MusicFrame.LOP.Text = " X "
else
sound.Looped = false
script.Parent.MusicFrame.LOP.Text = ""
end
end)
-- serverscript
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player,sound)
if game.ReplicatedStorage.Boombox.Radio.Sound.SoundId then
game.ReplicatedStorage.Boombox.Radio.Sound:Play()
print("SUP")
end
end)