function TagHumanoid(y,u)local l=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")l.Name="\099\114\101\097\116\111\114"l.Value=u debris:AddItem(l,.3)l.Parent=y end function UntagHumanoid(y)for y,u in pairs(y:GetChildren())do if u:IsA("\079\098\106\101\099\116\086\097\108\117\101")and u.Name=="\099\114\101\097\116\111\114"then u:Destroy()end end end function TextEffects(y,u,l,D,M)y:TweenPosition(UDim2.new(0,math.random(-40,40),0,-u),l,D,M)wait(.5)for u=1,60,1 do y.TextTransparency=y.TextTransparency+.016666666666667 y.TextStrokeTransparency=y.TextStrokeTransparency+.016666666666667 wait(.016666666666667)end y.TextTransparency=y.TextTransparency+1 y.TextStrokeTransparency=y.TextStrokeTransparency+1 y.Parent:Destroy()end function DynamicText(y,u,l)local D=Instance.new("\066\105\108\108\098\111\097\114\100\071\117\105",l.Parent.Head)D.Size=UDim2.new(0,50,0,100)local M=Instance.new("\084\101\120\116\076\097\098\101\108",D)D.AlwaysOnTop=true M.TextColor3=Color3.fromRGB(255,0,0)M.Text=y M.Font=Enum.Font.SourceSans M.TextStrokeTransparency=0 M.Size=UDim2.new(1,0,1,0)M.Position=UDim2.new(0,0,0,0)M.BackgroundTransparency=1 D.Adornee=D.Parent if y<u then M.TextSize=28 M.TextColor3=Color3.new(1,0,0)elseif y>=u then M.TextSize=32 M.TextColor3=Color3.new(1,1,0)end spawn(function()TextEffects(M,85,Enum.EasingDirection.Out,Enum.EasingStyle.Quint,.75)end)end function DamageAndTagHumanoid(y,u,l)hit:FireClient(y)UntagHumanoid(handle)print("\077\121 \080\108\097\121\101\114 \061",y.Name)local D=y:FindFirstChild("\108\101\097\100\101\114\115\116\097\116\115")if D then D.Points.Value=D.Points.Value+1 end u:TakeDamage(l)TagHumanoid(u,y)end
--//Custom Functions\\--
function TagHumanoid(humanoid, player)
	local Creator_Tag = Instance.new("ObjectValue")
	Creator_Tag.Name = "creator"
	Creator_Tag.Value = player
	debris:AddItem(Creator_Tag, 0.3)
	Creator_Tag.Parent = humanoid
end

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

function TextEffects(element, floatAmount, direction, style, duration)
	element:TweenPosition(UDim2.new(0, math.random(-40, 40), 0, -floatAmount), direction, style, duration)
	wait(0.5)

	for i = 1, 60 do
		element.TextTransparency = element.TextTransparency + 1 / 60
		element.TextStrokeTransparency = element.TextStrokeTransparency + 1 / 60
		wait(1 / 60)
	end

	element.TextTransparency = element.TextTransparency + 1
	element.TextStrokeTransparency = element.TextStrokeTransparency + 1
	element.Parent:Destroy()
end

function DynamicText(damage, criticalPoint, humanoid)
	local bill = Instance.new("BillboardGui", humanoid.Parent.Head)
	bill.Size = UDim2.new(0, 50, 0, 100)
	local part = Instance.new("TextLabel", bill)
	bill.AlwaysOnTop = true
	part.TextColor3 = Color3.fromRGB(255, 0, 0)
	part.Text = damage
	part.Font = Enum.Font.SourceSans
	part.TextStrokeTransparency = 0
	part.Size = UDim2.new(1, 0, 1, 0)
	part.Position = UDim2.new(0, 0, 0, 0)
	part.BackgroundTransparency = 1
	bill.Adornee = bill.Parent

	if damage < criticalPoint then
		part.TextSize = 28
		part.TextColor3 = Color3.new(1, 0, 0)
	elseif damage >= criticalPoint then
		part.TextSize = 32
		part.TextColor3 = Color3.new(1, 1, 0)
	end

	spawn(function()
		TextEffects(part, 85, Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.75)
	end)
end

function DamageAndTagHumanoid(player, humanoid, damage)
	hit:FireClient(player)
	UntagHumanoid(handle)
	print("My Player =", player.Name)
	local brd = player:FindFirstChild("leaderstats")
	if brd then
		brd["Points"].Value = brd["Points"].Value + 1
	end
	humanoid:TakeDamage(damage)
	TagHumanoid(humanoid, player)
end
