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)