local Q=function(Q,x)local H=nil for Q,q in pairs(Q:GetChildren())do if q.ClassName==x then H=q break end end return H end local x=function(Q)local x=game.Players:GetPlayerFromCharacter(Q.Parent)if not x then return S.CanDamageNPCs end return S.AllowFriendlyFire or x.TeamColor~=Plyr.Value.TeamColor or x.Neutral end local H=function(Q)for x,H in pairs(Ignore)do if Q==H or Q:IsDescendantOf(H)then return true end end return false end local q=function()spawn(function()local Q=(Plyr.Value:WaitForChild("\080\108\097\121\101\114\071\117\105")):WaitForChild("\077\097\105\110\095\071\117\105")local x=Q:WaitForChild("\072\105\116\077\097\114\107\101\114")x.Visible=true local H=tick()x.LastMark.Value=H wait(.5)if x.LastMark.Value<=H then x.Visible=false end end)end
------------------------------------------------------------------------------
--------------------[ FUNCTIONS ]---------------------------------------------
------------------------------------------------------------------------------

local FindFirstClass = function(Object, Class)
	local FoundObject = nil
	for _, Obj in pairs(Object:GetChildren()) do
		if Obj.ClassName == Class then
			FoundObject = Obj
			break
		end
	end
	return FoundObject
end

local IsEnemy = function(Human)
	local HitPlyr = game.Players:GetPlayerFromCharacter(Human.Parent)
	if not HitPlyr then
		return S.CanDamageNPCs
	end
	return S.AllowFriendlyFire or (HitPlyr.TeamColor ~= Plyr.Value.TeamColor or HitPlyr.Neutral)
end

local IsIgnored = function(Obj)
	for _, v in pairs(Ignore) do
		if Obj == v or Obj:IsDescendantOf(v) then
			return true
		end
	end
	return false
end

local MarkHit = function()
	spawn(function()
		local Gui_Clone = Plyr.Value:WaitForChild("PlayerGui"):WaitForChild("Main_Gui")
		local HitMarker = Gui_Clone:WaitForChild("HitMarker")

		HitMarker.Visible = true
		local StartMark = tick()
		HitMarker.LastMark.Value = StartMark

		wait(0.5)

		if HitMarker.LastMark.Value <= StartMark then
			HitMarker.Visible = false
		end
	end)
end
