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!