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
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)
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.
The problem is because you havent fired a remote event. So it will only play for the local player.
how would i do this because im not to good at scripting
Uncheck the “RespectFilteringEnabled” box in “SoundService”