The client is nil for some reason?

Hi there! I’m having strange issues with a missing client. I’m trying to fire a remote event to one client, but it says they are nil. Here is my code:

game.Players.PlayerAdded:Connect(function(player)
	local equipped = player:FindFirstChild("Equipped")
	local backpack = player:FindFirstChild("Backpack")
	local wand = backpack:FindFirstChild("Wand")
	player.Chatted:Connect(function(message)
		if message == "activate" then
			print("Activate")
			game.ReplicatedStorage.WandEvent:FireClient()
		end
	end)
end)

Typing activate returns the error:
Argument 1 is missing or nil
Does anyone know how to fix this? Any help is appreciated!

You need to pass the client for the server to fire to.

So do game.ReplicatedStorage.WandEvent:FireClient(player)

2 Likes

Thank you! I’ve never tried Server - Single Client events, so I’m a bit of a noob to that.