Debris=game:GetService("\068\101\098\114\105\115")ProjectileNames={"\077\101\115\104\080\097\114\116","\065\114\114\111\119","\080\114\111\106\101\099\116\105\108\101";"\069\102\102\101\099\116";"\082\097\105\108","\076\097\115\101\114","\082\097\121","\066\117\108\108\101\116";"\080\097\114\116\105\099\108\101\080\097\114\116"}Functions={CreateConfiguration=function(j,F)for j,I in pairs(j:GetChildren())do if string.find(I.ClassName,"\086\097\108\117\101")then F[I.Name]=I:Clone()elseif I:IsA("\070\111\108\100\101\114")or I:IsA("\067\111\110\102\105\103\117\114\097\116\105\111\110")then F[I.Name]=Functions.CreateConfiguration(I,F)end end return F end,FindCharacterAncestor=function(j)if j and j~=game:GetService("\087\111\114\107\115\112\097\099\101")then local F=j:FindFirstChild("\072\117\109\097\110\111\105\100")if F then return j,F else return Functions.FindCharacterAncestor(j.Parent)end end return nil end;CheckTableForString=function(j,F)for j,I in pairs(j)do if string.lower(I)==string.lower(F)then return true end end return false end;CheckIntangible=function(j)if j and j.Parent then if Functions.CheckTableForString(ProjectileNames,j.Name)then return true end local F=j.Parent local I=F.Parent local n=I:FindFirstChild("\072\117\109\097\110\111\105\100")if n and(n.Health>0 and F:IsA("\072\097\116"))then return true end end return false end;CastRay=function(j,F,I,n,w)local W,A,k=(game:GetService("\087\111\114\107\115\112\097\099\101")):FindPartOnRayWithIgnoreList(Ray.new(j,F*I),n)if W and Functions.CheckIntangible(W)then if w then wait()end W,A,k=Functions.CastRay(A+F*.01,F,I-(j-A).magnitude,n,w)end return W,A,k end,IsTeamMate=function(j,F)return j and(F and(not j.Neutral and(not F.Neutral and j.TeamColor==F.TeamColor)))end,TagHumanoid=function(j,F)local I=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")I.Name="\099\114\101\097\116\111\114"I.Value=F Debris:AddItem(I,2)I.Parent=j end,UntagHumanoid=function(j)for j,F in pairs(j:GetChildren())do if F:IsA("\079\098\106\101\099\116\086\097\108\117\101")and F.Name=="\099\114\101\097\116\111\114"then F:Destroy()end end end;CheckTableForString=function(j,F)for j,I in pairs(j)do if string.lower(I)==string.lower(F)then return true end end return false end,Clamp=function(j,F,I)return math.max(math.min(I,j),F)end,GetPercentage=function(j,F,I)return((I-j)/(F-j))*100 end,Round=function(j,F)local I,n=math.modf(j)return n>=F and math.ceil(j)or n<F and math.floor(j)end}return Functions
--Made by Luckymaxer

Debris = game:GetService("Debris")

ProjectileNames = { "MeshPart", "Arrow", "Projectile", "Effect", "Rail", "Laser", "Ray", "Bullet", "ParticlePart" }

Functions = {

	CreateConfiguration = function(Configurations, Table)
		for i, v in pairs(Configurations:GetChildren()) do
			if string.find(v.ClassName, "Value") then
				Table[v.Name] = v:Clone()
			elseif v:IsA("Folder") or v:IsA("Configuration") then
				Table[v.Name] = Functions.CreateConfiguration(v, Table)
			end
		end
		return Table
	end,

	FindCharacterAncestor = function(Object)
		if Object and Object ~= game:GetService("Workspace") then
			local Humanoid = Object:FindFirstChild("Humanoid")
			if Humanoid then
				return Object, Humanoid
			else
				return Functions.FindCharacterAncestor(Object.Parent)
			end
		end
		return nil
	end,

	CheckTableForString = function(Table, String)
		for i, v in pairs(Table) do
			if string.lower(v) == string.lower(String) then
				return true
			end
		end
		return false
	end,

	CheckIntangible = function(Hit)
		if Hit and Hit.Parent then
			if Functions.CheckTableForString(ProjectileNames, Hit.Name) then
				return true
			end
			local ObjectParent = Hit.Parent
			local Character = ObjectParent.Parent
			local Humanoid = Character:FindFirstChild("Humanoid")
			if Humanoid and Humanoid.Health > 0 and ObjectParent:IsA("Hat") then
				return true
			end
		end
		return false
	end,

	CastRay = function(StartPos, Vec, Length, Ignore, DelayIfHit)
		local RayHit, RayPos, RayNormal = game:GetService("Workspace")
			:FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
		if RayHit and Functions.CheckIntangible(RayHit) then
			if DelayIfHit then
				wait()
			end
			RayHit, RayPos, RayNormal = Functions.CastRay(
				(RayPos + (Vec * 0.01)),
				Vec,
				(Length - (StartPos - RayPos).magnitude),
				Ignore,
				DelayIfHit
			)
		end
		return RayHit, RayPos, RayNormal
	end,

	IsTeamMate = function(Player1, Player2)
		return (
			Player1
			and Player2
			and not Player1.Neutral
			and not Player2.Neutral
			and Player1.TeamColor == Player2.TeamColor
		)
	end,

	TagHumanoid = function(humanoid, player)
		local Creator_Tag = Instance.new("ObjectValue")
		Creator_Tag.Name = "creator"
		Creator_Tag.Value = player
		Debris:AddItem(Creator_Tag, 2)
		Creator_Tag.Parent = humanoid
	end,

	UntagHumanoid = function(humanoid)
		for i, v in pairs(humanoid:GetChildren()) do
			if v:IsA("ObjectValue") and v.Name == "creator" then
				v:Destroy()
			end
		end
	end,

	CheckTableForString = function(Table, String)
		for i, v in pairs(Table) do
			if string.lower(v) == string.lower(String) then
				return true
			end
		end
		return false
	end,

	Clamp = function(Number, Min, Max)
		return math.max(math.min(Max, Number), Min)
	end,

	GetPercentage = function(Start, End, Number)
		return (((Number - Start) / (End - Start)) * 100)
	end,

	Round = function(Number, RoundDecimal)
		local WholeNumber, Decimal = math.modf(Number)
		return ((Decimal >= RoundDecimal and math.ceil(Number)) or (Decimal < RoundDecimal and math.floor(Number)))
	end,
}

return Functions
