ChildAdded does not fire on PlayerAdded

Hi,

I’m trying to detect when an item is added to an inventory when they join the game, but the event is not listening (clearly).

Output of this:

game.Players.darkpixlz.Backpack.ChildAdded:Connect(function()
	print("f")
end)
-- -> f f f f 

Output of my crrent code:

game.Players.PlayerAdded:Connect(function(Player)
	PlayerInfo[Player.UserId] = {}
	print("added")
	Player.Backpack.ChildAdded:Connect(function(Tool)
		print("adding")
		Remotes.AddToInvClient:FireClient(Player, Tool.Name)
	end)
end)

-- -> added

That is when I take it out of the backpack and put it back multiple times.

Thanks for nay help, I’m not sure as to what is causing it.

1 Like

Is the script where the game.Players.PlayerAdded is in server sided or client sided?

Both examples given are serversided

Server will not detect client-sided Tools. Consider firing the Remote on the server

As I said in the OP, directly binding it to me works, but not on PlayerAdded.

vs

The tool I am using to test is the toolbox sword, I just need something to test the system for a commission

Try connecting the signal on player.CharacterAdded instead of PlayerAdded, I think I ran into an issue like this in the past and discovered that the backpack gets replaced every time the character is loaded or something like that

1 Like

Can’t believe the answer was that simple, thank you!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.