Hi there! I’m scripting a game. However when adding 2 numbers via a remote event seems to provide a type error. Here is the code snippets.

Is there something i could do?
Hi there! I’m scripting a game. However when adding 2 numbers via a remote event seems to provide a type error. Here is the code snippets.

Is there something i could do?
in postvideo()
don’t use tonumber() because the references are numbers to begin with.
Doesn’t help! I’m so sorry. ![]()
Could it be how i’m requesting the player stats?
what error does it make?
ccccccccccccccccccccccc
Type error. Apparently i’m doing arithmetic with an instance and number.
image reference for the error please?

Ok, you should try to print the locals in the videoPost() func.
If its not a number then that’s the problem
I’ve printed on both the client and server. They are numbers.
Here’s the output:

![]()
Do not fire a remote event with the player as the first argument; this is where your issue is coming from
Yes
Ohh! Does that get passed automatically?
yeah. If you fire a remote event, it has a constant reference in the server side where it has the player and that’s what the client came from.
Thank you so much for your help! May God bless you ![]()
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.