#ChildAdded didn't working
1 messages · Page 1 of 1 (latest)
Weapons.ChildAdded:Connect(function()
for _, child in ipairs(Weapons:GetChildren()) do
if child:IsA("ValueObject") then
BpWeapons[child.Name] = {
Value = child.Value
}
end
end
end)
i mean, do you add children to the weapons? like from any other script?
i can send all script
one second
im have a inventory, im save this inventory without table, table saves and adds a values, but if i got new value this is dont go to table
duplicate thread; basically the :IsA is wrong, it should be ObjectValue not ValueObject
im change but its already dont working
you dont need to loop through, you can:
Weapons.ChildAdded:Connect(function(child)
if (child:IsA(“ObjectValue”) then
— code
end)
check ur hierarchy to see if its a descendant or a child