Need help(FireClient is not a valid member of RemoteFunction)

Alright so I’m new to the forum but I need some help.

This just won’t work, I’m trying to Fire the Client with a RemoteFunction but it will just say
FireClient is not a valid Member of RemoteFunction. Which is strange to me since
I do the exact same thing with other code in my ModuleScripts and they work.

—Attempt
RemoteFunction:FireClient(player, “BlurScreen”)

—Error
FireClient is not a valid member of RemoteFunction
Stack Begin
Script ‘ServerScriptService.Responders.Player’, Line 79 - global BlurScreen
Script ‘ServerScriptService.Responders.Player’, Line 425
Stack End

use InvokeClient instead your using remote function
In addition, you must have the remote function equal to something as it returns a callback:
for example

local Callback
Callback = RemoteFunction:InvokeClient(player,"BlurScreen")

2 Likes

I am fairly sure that fire client is only used in remote events not remote functions. In fact, remote functions use something called Invoke Client or Invoke Server. so using that instead of Fire Client, the issue should be solved.

4 Likes

R.I.P. I’m running slow today. I was hesitant on making this, knew it
was gonna end this way

2 Likes

Just wanted to say that callback is the function you set to as OnServerInvoke/OnClientInvoke, and its return doesn’t have to be stored as a variable.
In other words, you can do this:

RemoteFunc:InvokeClient(stuff)

and it will work just fine without declaring it as a variable

1 Like