I don’t get what’s wrong with my script, it should work?
local v = false
script.Parent.Touched:Connect(function(h)
if h.Parent:FindFirstChild("Humanoid") then
if v == false then
v = true
local p = game.Players:GetPlayerFromCharacter(h.Parent)
if p then
for i,v in ipairs(p.Backpack:Getchildren()) do
print("Found: "..v.Name)
end
end
end
end
end)