I can swing the weapon and from what I've learned this should work but it wont deal damage, it is a tool named StickWeapon with a model named Stick
local Stick = script.Parent
local canDamage = false
local function onTouch(otherpart)
if not humanoid then
return
end
if humanoid.Parent ~= Stick.Parent and canDamage then
humanoid:TakeDamage(10)
else
return
end
canDamage = false
end
local function slash()
local str = Instance.new("StringValue")
str.Name = "toolanim"
str.Value = "Slash"
str.Parent = Stick
canDamage = true
end
Stick.Activated:Connect(slash)
StickWeapon.Handle.Touched:Connect(onTouch)

2 comments
put it in a script box.
try: Humanoid.Health = Humanoid.Health - 10