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

Sending Values on FireClient returned nil?

Asked by 4 years ago

Hello there. I tryed sending a value using FireClient.

Script:

Event:FireClient(player,"1")

LocalScript:

Event.OnClientEvent(player,increase)

But it returned nil, and no errors. Any Help would be appreciated.

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

When using the OnClientEvent Event after using :FireClient, you do not need to add the player parameter since the client already know who the local player is. So to fix this all you need to do is remove the player parameter and it should print out whatever your argument was.

0
Cool, I'll try it out. rayhansatria 142 — 4y
0
Welp, Unable to cast value to Object rayhansatria 142 — 4y
0
Dont remove the player argument in the server script but remove the player parameter from the LOCAL script THEN I am sure it should work DeUltimate23 142 — 4y
0
oh, let me try that rayhansatria 142 — 4y
Ad

Answer this question