How to track enemy Backpack

how should i track my enemy backpack

	knife.Touched:Connect(function(hitpart)
		antiGravity:Destroy()
		if not hitpart:IsDescendantOf(Character) then
			if hitpart.Parent:FindFirstChild("Humanoid") then
				local enemy = hitpart.Parent
1 Like
local players = game:GetService("Players")

knife.Touched:Connect(function(hitPart)
	antiGravity:Destroy()
	if hitPart:IsDescendantOf(Character) then
		return
	end
	
	local hitModel = hitPart:FindFirstAncestorWhichIsA("Model")
	if hitModel then
		local enemyPlayer = players:GetPlayerFromCharacter(hitModel)
		if enemyPlayer then
			local enemyHuman = hitModel:FindFirstChild("Humanoid")
			local enemyBackpack = enemyPlayer:FindFirstChild("Backpack")
1 Like