this is my script and its not working
hitbox.Touched:Connect(function(hitpart)
if not hitpart:IsDescendantOf(char) then
if hitpart.Parent:FindFirstChild("Humanoid") then
local enemy = hitpart.Parent
if (table.find(ignorelist,enemy) == nil) then
table.insert(ignorelist,enemy)
local part = Instance.new("Part")
part.Name = "TErasePart"
part.Parent = game.Workspace
part.CFrame = enemy.HumanoidRootPart.CFrame
part.Transparency = 1
part.CanTouch = false
wait(10)
enemy.Position = part.Position