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.
—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")
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.
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