I have a issue,Where if INVOKECLIent() does not pass through the second Varaibles???
10:50:44.932 ogether123 - Server - Script:16
10:50:45.783 nil - Client - BossFighlocalScript:56
Server Script:
Client Script:
Can Somone pls Check Whats wrong??
When The Second varaible is pass through the Client.It suddenly Became Nil.
Forummer
(Forummer)
April 19, 2024, 2:53am
#2
InvokeClient
requires a player argument (the client you’re invoking) and any additional arguments.
RemoteFunction:InvokeClient(player, arg1, arg2) --player represents the client you're invoking
RemoteFunction.OnClientInvoke = function(arg1, arg2) --additional arguments are received by the client
The playerCheck is the gameplayer.The First One did pass through,just that The second one did not
Forummer
(Forummer)
April 19, 2024, 2:56am
#4
The player argument you pass to InvokeClient
is not received by the function assigned to OnClientInvoke
.
There is another problem,Once it has the result,It didnt sent back???Whats wrong with this
10:59:46.449 Script ‘Workspace.MathBossFightArena.Spawner.BossFightBattle’, Line 67 - function resulting (x4997)
That is the problem.I think.So ,What do i do?I think The Main Problem is it is being sent too many times
Forummer
(Forummer)
April 19, 2024, 3:03am
#7
Your startGame
function doesn’t contain a return statement.
I actually want the client go back to the server if the condition is met
some of the return did work.(like this part)