function hitbox()
local hitbox = game.ReplicatedStorage.katanaHitBox:Clone()
hitbox.Parent = workspace
hitbox.CanCollide = false
hitbox.Massless = true
hitbox.Anchored = false
hitbox.CFrame = blade.CFrame
local weld = Instance.new("WeldConstraint")
weld.Parent = hitbox
weld.Part0 = hitbox
weld.Part1 = blade
game.Debris:AddItem(hitbox, 0.7)
--fire to server!
local hits = {}
hitbox.Touched:Connect(function(hit)
table.insert(hits, hit)
game.ReplicatedStorage.swordEvent:FireServer(hit)
end)
end