Audio problem with els system

I am having a problem with my scripted els the audio can be heard on the client’s side but not the server I need help I heard that I should use remote events.

I don’t know how to explain this without bland detail please help I need it asap

Plesse show us the code. So we could help.

veh = game.Workspace:FindFirstChild(script.Parent.Parent.CarName.Value, true).Body

script.Parent.MouseButton1Click:Connect(function()
if veh.Lightbar.middle.Wail.IsPlaying == true then
veh.Lightbar.middle.Wail:Stop()
veh.Lightbar.middle.Yelp:Stop()
veh.Lightbar.middle.Priority:Stop()
else
veh.Lightbar.middle.Wail:Play()
veh.Lightbar.middle.Yelp:Stop()
veh.Lightbar.middle.Priority:Stop()
end
end)

1 Like

veh = game.Workspace:FindFirstChild(script.Parent.Parent.CarName.Value, true).Body

script.Parent.MouseButton1Click:Connect(function()
    if veh.Lightbar.middle.Wail.IsPlaying == true then
        veh.Lightbar.middle.Wail:Stop()
        veh.Lightbar.middle.Yelp:Stop()
        veh.Lightbar.middle.Priority:Stop()
    else
        veh.Lightbar.middle.Wail:Play()
        veh.Lightbar.middle.Yelp:Stop()
        veh.Lightbar.middle.Priority:Stop()
    end
end)

Note this is not the solution yet just the formatted version of your script.

1 Like

The problem is because you havent fired a remote event. So it will only play for the local player.

1 Like

how would i do this because im not to good at scripting

1 Like

Uncheck the “RespectFilteringEnabled” box in “SoundService”

1 Like

Documentation:
https://developer.roblox.com/en-us/api-reference/property/SoundService/RespectFilteringEnabled

1 Like