sp=script.Parent r=game:service("\082\117\110\083\101\114\118\105\099\101")anims={"\082\105\103\104\116\083\108\097\115\104","\076\101\102\116\083\108\097\115\104","\079\118\101\114\072\101\097\100\083\119\105\110\103"}basedamage=0+script.Parent.AddDam.Value/4 slashdamage=15+script.Parent.AddDam.Value swingdamage=15+script.Parent.AddDam.Value damage=basedamage sword=sp.Handle sp.Taunting.Value=false local S=Instance.new("\083\111\117\110\100")S.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"S.Parent=sword S.Volume=.7 local k=Instance.new("\083\111\117\110\100")k.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"k.Parent=sword k.Volume=0 function blow(S)if S.Parent==nil then return end local k=S.Parent:findFirstChild("\072\117\109\097\110\111\105\100")local F=sp.Parent local w=game.Players:playerFromCharacter(F)local W=F:findFirstChild("\072\117\109\097\110\111\105\100")if k~=nil and(k~=W and W~=nil)then local S=F:FindFirstChild("\082\105\103\104\116 \065\114\109")if S~=nil then local F=S:FindFirstChild("\082\105\103\104\116\071\114\105\112")if F~=nil and(F.Part0==sword or F.Part1==sword)then tagHumanoid(k,w)k:TakeDamage(damage)wait(1)untagHumanoid(k)end end end end function tagHumanoid(S,k)local F=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")F.Value=k F.Name="\099\114\101\097\116\111\114"F.Parent=S end function untagHumanoid(S)if S~=nil then local k=S:findFirstChild("\099\114\101\097\116\111\114")if k~=nil then k.Parent=nil end end end sp.Enabled=true function onActivated()if sp.Enabled and not sp.Taunting.Value then sp.Enabled=false local k=sp.Parent local F=k.Humanoid if F==nil then print("\072\117\109\097\110\111\105\100 \110\111\116 \102\111\117\110\100")return end S:play()newanim=anims[math.random(1,#anims)]while newanim==sp.RunAnim.Value do newanim=anims[math.random(1,#anims)]end sp.RunAnim.Value=newanim if newanim=="\079\118\101\114\072\101\097\100\083\119\105\110\103"then damage=swingdamage else damage=slashdamage end wait(1)damage=basedamage sp.Enabled=true end end function onEquipped()k:play()end sp.Activated:connect(onActivated)sp.Equipped:connect(onEquipped)connection=sword.Touched:connect(blow)
--Stickmasterluke
--A nice simple axe

sp = script.Parent

r = game:service("RunService")

anims = { "RightSlash", "LeftSlash", "OverHeadSwing" }

basedamage = 0 + (script.Parent.AddDam.Value / 4)
slashdamage = 15 + script.Parent.AddDam.Value
swingdamage = 15 + script.Parent.AddDam.Value
damage = basedamage

sword = sp.Handle
sp.Taunting.Value = false

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

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

function blow(hit)
	if hit.Parent == nil then
		return
	end -- happens when bullet hits sword
	local humanoid = hit.Parent:findFirstChild("Humanoid")
	local vCharacter = sp.Parent
	local vPlayer = game.Players:playerFromCharacter(vCharacter)
	local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if sp 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
				tagHumanoid(humanoid, vPlayer)
				humanoid:TakeDamage(damage)
				wait(1)
				untagHumanoid(humanoid)
			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
end

function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild("creator")
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end

sp.Enabled = true
function onActivated()
	if sp.Enabled and not sp.Taunting.Value then
		sp.Enabled = false
		local character = sp.Parent
		local humanoid = character.Humanoid
		if humanoid == nil then
			print("Humanoid not found")
			return
		end
		SlashSound:play()
		newanim = anims[math.random(1, #anims)]
		while newanim == sp.RunAnim.Value do
			newanim = anims[math.random(1, #anims)]
		end
		sp.RunAnim.Value = newanim
		if newanim == "OverHeadSwing" then
			damage = swingdamage
		else
			damage = slashdamage
		end
		wait(1)
		damage = basedamage
		sp.Enabled = true
	end
end

function onEquipped()
	UnsheathSound:play()
end

sp.Activated:connect(onActivated)
sp.Equipped:connect(onEquipped)

connection = sword.Touched:connect(blow)
