I want to know how I can detect if player picked up an item and If yes I want there to be a text that popped up saying something like “You have picked up a Wood”. You dont need to really send the full script I just need to know how to detect if player picked up and item.
Maybe use a ClickDetector Event so whenever a player clicks it, do the necessary server checks then use a RemoteEvent to fire to the client to create a notification. That’s the way I would do this.
This doesn’t seem to work. Am I getting the player’s inventory correctly?
local Players = game:GetService("Players").LocalPlayer
local bacpkack = Players:WaitForChild("Backpack")
local function onChildAdded(instance)
print("You have picked up " .. instance.Name)
end
bacpkack.ChildAdded:Connect(onChildAdded)