Sword Smith | Script Swords in Just Minutes! [FREE]

I’ve tried following your tutorial & doing the damage thing as per your words.
Doesn’t seems to affect the damage at all.

Idle anim not playing either.

local ServerStorage = game:GetService("ServerStorage")
local SwordSmith = require(ServerStorage:WaitForChild("SwordSmith"))

local tool = script.Parent
local debounce = false
local data = {
	swingAnims={10732421630,10732496791,},
	holdAnims = {9312931572},
	currentDamage = 50,
}

local sword = SwordSmith.new(tool, data)

tool.Activated:Connect(function()
	if debounce then
		return
	end

	debounce = true
	sword:Swing()
end);

sword:OnSwingEnded(function()
	--You can of course add extra delay if you have a short swing animation
	debounce = false
end)
2 Likes

@Q_ubit Just wondering how could I add a sound that plays when it hits a player? Also I want to make it so that every hit the player does he gets cash, also the idle animation doesn’t seem to be working for some reason

yeah this doesn’t seem to be working at all

I did it.

		local connection
		connection = hit.Touched:Connect(function()end)
		local touching = hit:GetTouchingParts()
		connection:Disconnect()
		local SwordOwner
		for i,v in pairs(touching) do
			if v.Name == "Blade" then
				SwordOwner = game.Players:GetPlayerFromCharacter(v.Parent.Parent)
			elseif v.Name == "Handle" then
				if v.Parent:FindFirstChild("Blade") then
					SwordOwner = game.Players:GetPlayerFromCharacter(v.Parent.Parent)
				end
			end
		end
		local character
		character = humanoid.Parent
		local hitplayer = game.Players:FindFirstChild(character.Name)
		if SwordOwner.TeamColor == hitplayer.TeamColor then
			print("same color, wont damage")
			return
		end

this is after the “newSwordInstance.hitBox.OnHit(function(hit, humanoid)” function

1 Like

I am very disappointed for bumping but thank you?

1 Like

Does this include blocking and or parrying?