Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"FireClient: player argument must be a Player object"?

Asked by 4 years ago

Hello there! I am using a remote event to send some variables to a client from the server. The variable "opponent" is the player. However, the output returns "FireClient: player argument must be a Player object". I've tested the variable and everything says it is a player, but still the code doesn't work. Any help is appreciated.

game.ReplicatedStorage.Remotes.UpdatePlayerStatusLocal:FireClient(opponent,text,color)
0
If the error says "opponent" is not a player, then "opponent" is not a player. We can't help you if you don't show us the rest of your code. User#26971 0 — 4y
0
if you are sending from client to server, doesn't it have to be FireServer? not FireClient srimmbow 241 — 4y
0
I figured it out. Turns out it was a nil value :) SnazzySpider67 53 — 4y

Answer this question