debris=game:GetService("\068\101\098\114\105\115")r=game:service("\082\117\110\083\101\114\118\105\099\101")local w=15 local j=15 sword=script.Parent.Handle Tool=script.Parent local A=Instance.new("\083\111\117\110\100")A.SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\092\115\119\111\114\100\115\108\097\115\104\046\119\097\118"A.Parent=sword A.Volume=1 local H=Instance.new("\083\111\117\110\100")H.SoundId="\114\098\120\097\115\115\101\116\058\047\047\115\111\117\110\100\115\092\117\110\115\104\101\097\116\104\046\119\097\118"H.Parent=sword H.Volume=1 local G=Instance.new("\083\111\117\110\100")G.SoundId="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\054\052\051\051\050\056\057"G.Parent=sword G.Volume=1 function isTurbo(w)return w:FindFirstChild("\082\105\100\100\108\105\110\103\083\107\117\108\108")~=nil end function blow(j)local A=j.Parent:findFirstChild("\072\117\109\097\110\111\105\100")local H=Tool.Parent local G=game.Players:playerFromCharacter(H)local x=H:findFirstChild("\072\117\109\097\110\111\105\100")if A~=nil and(A~=x and x~=nil)then local j=H:FindFirstChild("\082\105\103\104\116 \065\114\109")if j~=nil then local x=j:FindFirstChild("\082\105\103\104\116\071\114\105\112")if x~=nil and(x.Part0==sword or x.Part1==sword)then if A.Health>w and A.Health>0 then tagHumanoid(A,G)A:TakeDamage(w)else DarkKill(A.Parent,A,G,H)end end end end end function DarkKill(w,j,A,H)if w:FindFirstChild("\070\111\114\099\101\070\105\101\108\100")~=nil then return end G:Play()local x=w:GetChildren()local R={}tagHumanoid(j,A)j.Health=0 for w=1,#x,1 do if x[w].className=="\080\097\114\116"then R[w]=x[w].BrickColor x[w].BrickColor=BrickColor.new(26)x[w].CanCollide=true x[w].Anchored=true end if x[w].Name=="\072\101\097\100"then local j=x[w]:FindFirstChild("\077\101\115\104")if j~=nil then j:Remove()end;(script.SkullMesh:Clone()).Parent=x[w]x[w].Anchored=false end end wait(.25)local c=1 if isTurbo(H)==true then c=3 end for w=1,#x,1 do if x[w].className=="\080\097\114\116"and x[w].Name~="\072\101\097\100"then for j=0,c,1 do local A=Instance.new("\080\097\114\116")A.formFactor=2 A.Size=Vector3.new(1,.4,1)A.BrickColor=BrickColor.new(26)A.Material=Enum.Material.Concrete A.TopSurface=0 A.BottomSurface=0 A.CFrame=x[w].CFrame+Vector3.new(0,j,0)x[w]:Remove()A.Parent=game.Workspace debris:AddItem(A,60)end end end end function tagHumanoid(w,j)local A=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")A.Value=j A.Name="\099\114\101\097\116\111\114"A.Parent=w debris:AddItem(A,1)end function attack()w=j A:play()local H=Instance.new("\083\116\114\105\110\103\086\097\108\117\101")H.Name="\116\111\111\108\097\110\105\109"H.Value="\083\108\097\115\104"H.Parent=Tool end function swordUp()Tool.GripForward=Vector3.new(-1,0,0)Tool.GripRight=Vector3.new(0,1,0)Tool.GripUp=Vector3.new(0,0,1)end function swordOut()Tool.GripForward=Vector3.new(0,0,1)Tool.GripRight=Vector3.new(0,-1,0)Tool.GripUp=Vector3.new(-1,0,0)end Tool.Enabled=true function onActivated()if not Tool.Enabled then return end Tool.Enabled=false local w=Tool.Parent local A=w.Humanoid if A==nil then print("\072\117\109\097\110\111\105\100 \110\111\116 \102\111\117\110\100")return end if isTurbo(w)==true then j=20 else j=15 end attack()wait(1)Tool.Enabled=true end function onEquipped()H:play()end script.Parent.Activated:connect(onActivated)script.Parent.Equipped:connect(onEquipped)connection=sword.Touched:connect(blow)

debris = game:GetService("Debris")
r = game:service("RunService")


local damage = 15


local slash_damage = 15


sword = script.Parent.Handle
Tool = script.Parent


local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
SlashSound.Parent = sword
SlashSound.Volume = 1


local UnsheathSound = Instance.new("Sound")
UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
UnsheathSound.Parent = sword
UnsheathSound.Volume = 1

local DustSound = Instance.new("Sound")
	DustSound.SoundId = "http://www.roblox.com/asset/?id=16433289"
	DustSound.Parent = sword
	DustSound.Volume = 1


function isTurbo(character)
	return character:FindFirstChild("RiddlingSkull") ~= nil
end
 

function blow(hit)
	local humanoid = hit.Parent:findFirstChild("Humanoid")
	local vCharacter = Tool.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
	local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
	if humanoid~=nil and humanoid ~= hum and hum ~= nil then
		-- final check, make sure sword is in-hand

		local right_arm = vCharacter:FindFirstChild("Right Arm")
		if (right_arm ~= nil) then
			local joint = right_arm:FindFirstChild("RightGrip")
			if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
				if humanoid.Health > damage and humanoid.Health > 0 then
					tagHumanoid(humanoid, vPlayer)
					humanoid:TakeDamage(damage)
				else
					DarkKill(humanoid.Parent, humanoid, vPlayer, vCharacter)
				end
			end
		end


	end
end

function DarkKill(character, humanoid, attacker, vChar)

	if (character:FindFirstChild("ForceField") ~= nil) then return end

	DustSound:Play()

	local childs = character:GetChildren()

	local colors = {}

	tagHumanoid(humanoid, attacker)
	humanoid.Health = 0

	for i=1,#childs do
		if (childs[i].className == "Part") then
			colors[i] = childs[i].BrickColor
			childs[i].BrickColor = BrickColor.new(26)
			childs[i].CanCollide = true
			childs[i].Anchored = true
		end
		if (childs[i].Name == "Head") then
			local m = childs[i]:FindFirstChild("Mesh")
			if (m ~= nil) then
				m:Remove()
			end
			script.SkullMesh:Clone().Parent = childs[i]
			childs[i].Anchored = false
		end
	end

	wait(.25)
	local limit = 1
	if (isTurbo(vChar) == true) then limit = 3 end

	for i=1,#childs do
		if (childs[i].className == "Part" and childs[i].Name ~= "Head") then
			for n=0,limit do
				local p = Instance.new("Part")
				p.formFactor = 2
				p.Size = Vector3.new(1,.4,1)
				p.BrickColor = BrickColor.new(26)
				p.Material = Enum.Material.Concrete
				p.TopSurface = 0
				p.BottomSurface = 0
				p.CFrame = childs[i].CFrame + Vector3.new(0,n,0)
				childs[i]:Remove()
				p.Parent = game.Workspace
				debris:AddItem(p, 60)
			end
		end
	end


end


function tagHumanoid(humanoid, player)
	local creator_tag = Instance.new("ObjectValue")
	creator_tag.Value = player
	creator_tag.Name = "creator"
	creator_tag.Parent = humanoid
	debris:AddItem(creator_tag, 1)
end


function attack()
	damage = slash_damage
	SlashSound:play()
	local anim = Instance.new("StringValue")
	anim.Name = "toolanim"
	anim.Value = "Slash"
	anim.Parent = Tool
end


function swordUp()
	Tool.GripForward = Vector3.new(-1,0,0)
	Tool.GripRight = Vector3.new(0,1,0)
	Tool.GripUp = Vector3.new(0,0,1)
end

function swordOut()
	Tool.GripForward = Vector3.new(0,0,1)
	Tool.GripRight = Vector3.new(0,-1,0)
	Tool.GripUp = Vector3.new(-1,0,0)
end



Tool.Enabled = true

function onActivated()

	if not Tool.Enabled then
		return
	end

	Tool.Enabled = false

	local character = Tool.Parent;
	local humanoid = character.Humanoid
	if humanoid == nil then
		print("Humanoid not found")
		return 
	end

	if (isTurbo(character) == true) then
		slash_damage = 20
	else
		slash_damage = 15
	end
	

	attack()

	wait(1)

	Tool.Enabled = true
end


function onEquipped()
	UnsheathSound:play()
end


script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)


connection = sword.Touched:connect(blow)


