Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why are all the car horns local?

Asked by 4 years ago
Edited 4 years ago

I'm making a simple car game and starting off with free model cars and they all have the same horn formats, all of which making the horn local. If you go to any free model car, it has the same layout of " HN" (the horn audio) under drive seat with a control script, GUI and a local script. I just want anyway to modify the horns to make them server wide.

1 answer

Log in to vote
0
Answered by 4 years ago

You can create a RemoteEvent that sends a request instead of playing the sound locally. The OnServerEvent function should look a bit like this:

RE.OnServerEvent:Connect(function(Player)
  CAR.Sound:Play()
end)
Ad

Answer this question