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.
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.
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
Cool, I'll try it out.
Welp, Unable to cast value to Object
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
oh, let me try that