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

Sending Values on FireClient returned nil?

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

✓ Accepted answer

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.

4 comments

0

Cool, I'll try it out.

0

Welp, Unable to cast value to Object

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

0

oh, let me try that

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