Hello! The way I want this to work is when someone damages someone, not kill them, then it makes the person who shot that player Boolean stat value to true. However, it isn't working. But if the player getting damaged by a player that they are true, then it doesn't. You get what I mean when you look at the script. Located at ServerScriptService, because I want this to work for all players.

local Humanoid = game.Players.LocalPlayer.Character.Humanoid
local Humanstats = game.Players.LocalPlayer
local OldHealth = Humanoid.Health

Humanoid:GetPropertyChangedSignal("Health"):Connect(function()
	if Humanoid.Health < OldHealth then
		local Tag = Humanoid:FindFirstChild("creator")
		if not Humanstats.Status == true then
			Tag.Status = true
			print(Humanstats.."Damaged by"..Tag)
		end
	end
	OldHealth = Humanoid.Health
end)