So I made a sword without handles,it works fine. I can equip and unequip, but the thing is how would I make a script to damage humanoid if the sword does not have a handle?
Are there any parts in the sword? I would make a invisible part surrounding the entire sword and have a Touched event on the part.
Well, if you have parts in the sword that touches someone when you hit them then you can use the basic:
for _,v in pairs(sword:GetChildren()) do v.Touched:connect(function(hit) player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then player.Character.Humanoid:TakeDamage(the amount of damage you want) end end) end
I hope this answered your question!