Is there a way to have multiple scripts listen to one remote event?

I am trying to lower the amount of events I use in my trains, and the horn and the bell use separate scripts to work. They used to work with their own Remote events but now I want them to work with only one event.

The main script is already listening to the event already and when I make the other scripts listen to the same event they don’t work.

Yes, multiple scripts can listen to one remote event. I tested it for client → server.

How did you do it?
Its not working for me.

Client:

game.ReplicatedStorage.RemoteEvent:FireServer()

Server:

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function()
	print(2)
end)

Other server script

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function()
	print(1)
end)

Edit, it does NOT work for server → client, only one handler can connect.

1 Like

ok I confirmed it works with variables too.
I was probably doing something wrong.

1 Like