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

RemoteEvent Args Help? please

game:GetService("ReplicatedStorage").Novus_Remotes.RemoteEvent.OnServerEvent:Connect(function(Player, Command, ValueOne, ValueTwo, KeyOne)

end)

If I fire the remote, it automatically gets the player. Now let's say I fire with Value One and KeyOne. Will these arguments automatically go to Command and ValueOne?

If you don't understand, do I have to fire all the arguments to prevent errors? I can't explain this better.

1 answer

✓ Accepted answer

You're essentially saying "Which order would these arguments passed by a Remote lay out?" if I'm not correct. They will not. If the Remote if Fired ClientSide, it'll automatically pass the LocalPlayer, make sure you are indexing the Player first, as it'll fall under the variablename you Give it. the other variables given will be passed in the Order you sent them as, so no, ValueOne and KeyOne won't replace positions with the other values, unless those were the values passed

Apologies if this is hard to understand

2 comments

0

It's pretty hard to understand. I get it though.

0

FE is confusing right:)

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