game.Players.PlayerAdded:Connect(function(Player)
print(Player)
Player.Backpack.ChildAdded:Connect(function(Child)
print(Child)
end)
Player.Backpack.ChildRemoved:Connect(function(Child)
print(Child)
end)
end)
It just doesn’t print anything except the player.
Are you adding the child from the client?
Also I suggest you to check out the documentation:
No, I am picking it up with my character.
When you pick up an item, it goes to your character first, not your backpack.
Try changing it so it also detects if it’s under the character.
I’ve also tried giving to backpack through scripts.
Alright, I think I figured it out, when every time your character loads in, your backpack gets destroyed and a new one is created.
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function()
local Backpack = player.Backpack
Backpack.ChildAdded:Connect(function(child)
print(child)
end)
Backpack.ChildRemoved:Connect(function(child)
print(child)
end)
end)
end)
You can use this code.
1 Like
system
(system)
Closed
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.