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

RemoteEvent Args Help? please

Asked by 5 years ago
Edited 5 years ago
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

Log in to vote
2
Answered by
Ziffixture 6913 Moderation Voter Community Moderator
5 years ago

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

0
It's pretty hard to understand. I get it though. Chaddaking 60 — 5y
0
FE is confusing right:) Ziffixture 6913 — 5y
Ad

Answer this question