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

Why do RemoteEvent parameters sometimes become nil?

Asked by
ipiano 120
10 years ago

I've been working with RemoteEvents, which I am new to, and I think I mostly understand them; however, sometimes, when I pass parameters from the client back to the server, the parameter is nil when the server receives it, but not when the client sends it. What might cause this? Does the parameter have to be something that exists on both the server and the client, not something only in the client?

Any help appreciated, thanks!

0
If the parameter is referring to a local object, then that could cause it. 2eggnog 981 — 10y
0
That's what I thought, but I didn't know for sure. There was nothing on the wiki to indicate whether there's a way to pass local objects to the server. Is there a way to do that? ipiano 120 — 10y

Answer this question