Testing character.childremoved and it's not firing

i’ve been experimenting with tables and came across this error on childremoved event. just doesn’t fire. the childadded works.

game.Players.PlayerAdded:Connect(function(player)
	module.has[player] = 0
	
	local character = player.Character or player.CharacterAdded:Wait()
	local human = character:WaitForChild("Humanoid")
	if not human then return end
	
	while character.Parent == nil do
		character.AncestryChanged:wait()
	end
	
	local newAnim = human:LoadAnimation(anim)
	character.ChildAdded:Connect(function(child)
		if child:GetAttribute("cube") then
			print(child)
			module.adding(player)
		end
	end)
	
	character.ChildRemoved:Connect(function(child)
		if child:GetAttribute("cube") then
			print(child)
			module.removing(player)
		end
	end)
end)

Did you try printing something before the attribute check to see if it is firing?

Are you getting any errors in your output/F9 console?

no
4we5ye46hertyhe56hwe5h6uedtyhjdtyj

Please stop spamming to bypass the char limit!

y, wats that gonna do??? if not more than whatever characters needed in a reply. whats the big deal. you’re focusing on the most irrelevant things in life.

It’s heavily frowned on by the devforum community, try and make your posts more detailed or have more info!

i had the script in replicated storage 0.0