GetChildren is not a valid member of backpack

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)

GetChildren not Getchildren

1 Like

Thank you, looks like my eyes are not working today!

1 Like