Remote event not passing second parameter

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I am trying to pass a second parameter in this remote function from the server to all of the clients.

  1. What is the issue? Include screenshots / videos if possible!

The first parameter (excluding the player) is being passed correctly so it prints the actual value, but the second parameter is printed as “nil”.

Client:


Server:
ServerSide

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I’ve tried iterating through all of the players and firing their clients individually, but that yielded the same result. I’ve looked through dev forum posts but most of the similar problems I could find involved people not sending the player as their first parameter or passing a dictionary as the second parameter.

I have the feeling I’m overlooking something very obvious, but I’m a bit stumped because all of my other remotes are working with no issue.

I belive this is because the first paramater is the player by default.

It’s not. He is using FireAllClients() you don’t pass (or take) a player parameter

1 Like

The problem was that a playerAdded connection was firing the same remote but without the second parameter :man_facepalming:.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.