Boolvalue isn't reading right

As said in the post, the bool dosens’t read right. In the other 1, 2, and 4 hits, it works correctly, but the 3rd hit dosen’t. The bool is off, but it still seems to read as “on”. even though its not.

	if ServerEventCounter == 3 then
		local A3 = CharacterAnimator:LoadAnimation(WeaponAni.Attacker.A3)
		A3:Play()
		local Sou1 =  WeaponSou.Attacker.swing:Clone()
		Sou1.Parent = Character
		Sou1:Play()
		Sou1.Ended:Connect(function()
			Sou1:Destroy()
		end)
		local HitBox = WeaponVis["3D"].Hitbox:Clone()
		HitBox.Parent = Character
		local Weld = Create("Weld",Character)
		Weld.Part0 = CharacterHumanoidRoot
		Weld.Part1 = HitBox
		Weld.C0 = CFrame.new(0,0,-4)
		game.Debris:AddItem(HitBox, WeaponSet.HitboxDelayTime.Value)
		game.Debris:AddItem(Weld, WeaponSet.HitboxDelayTime.Value)
		
		local parts = workspace:GetPartBoundsInBox(HitBox.CFrame,HitBox.Size,HitboxSettings)
		for i,v in ipairs(parts) do
			local victim = v.Parent
			local victimtarget = victim:FindFirstChild("Humanoid")
			local victimroot = victim:FindFirstChild("HumanoidRootPart")
			if victimtarget then
				local ISNPC = victim:FindFirstChild("IsNPC")
				if ISNPC.Value == true then
					victimtarget:TakeDamage(WeaponSet.HitboxDamage.Value) -- BYPASSING?!
					local sound = WeaponSou.Victim.hit_punch_l2:Clone()
					sound.Parent = victim
					sound:Play()
					sound.Ended:Connect(function()
						sound:Destroy()
					end)
					local bv = Create("BodyVelocity",victimroot)
					bv.Parent = victimroot
					bv.Velocity = victimroot.CFrame.LookVector * -15
					bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
					game.Debris:AddItem(bv, WeaponSet.HitboxDelayTime.Value)
					WeaponsEve.SP.SPHit:FireClient(player, CharacterHumanoidRoot)
					print("FIRED")
					for o,b in ipairs(WeaponVis["4D(CF)"].Hit:GetChildren()) do
						--local z = b:Clone()
						--local a = Create("Attachment",victim:FindFirstChild("HumanoidRootPart"))
						--z.Parent = a
						--z:Emit(4)
						--game.Debris:AddItem(a, WeaponSet.HitboxDelayTime.Value)
					end

				end
				if ISNPC.Value == false then
					print("DAMAGED!")

				end

			end
		end
		
	end

Is there anything that sets the value of ISNPC outside of the posted code?

No, theres nothing else.
image

Setting the part of code to “false” and then else fixed it :neutral_face: