Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

RemoteEvent Help passing more than 1 player?

Hello,

So I have a question. How would I go about passing more than 1 player with a RemoteEvent? I know that the first thing to pass is always the Player, but if I need to pass more than 1 player for a Minigame.

I.E - When the round is done, I want to use RemoteEvent to award the players the coins.

  • I am not asking for a request, I am learning how to use RemoteEvent, but I am stuck with this*

Thanks, Antux

1 comment

0

Just send them as parameters and accept them as arguments like anything else.

1 answer

Don't

Not like that, at the very least. What your question suggests is that you intend on asking the client to add coins, or getting the client to tell the server to add coins. This is really bad logic.


To answer your question regardless, simply loop through all of the Players you need instead and use FireClient for all of the clients. Some things are simpler than you think.

This discussion is preserved as it was. New answers, comments, and votes are closed.