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


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
