local function checkInventory(player)
for i, v in pairs(game.Players:GetPlayers()) do
local backpack = v.Backpack
local contents = backpack:GetChildren()
if contents ~= ("XTREME_ENRGY") then
v.Character.Humanoid.Health = 0
end
end
end
The goal of this function is to check if a certain item is in a players backpack and if not, kill them, but even when I put the correct item in the players backpack it still kills them, why is this?
