Does anyone know why my script doesn't register hits every time I cast rays?

So I decided to use the hitbox module by Swordphin, and I tested it but the hitbox isn’t working the way I thought it would. It’s not registering hits most of the time, can someone help me figure out why?

local module = {}

local Handle = script:WaitForChild("Blade")

local Player = script.Parent.Parent.Parent.Parent
local Character = Player.Character or Player.CharacterAdded:Wait()
Handle.Parent = Character
local Motor6D = Instance.new("Motor6D")
Motor6D.Parent = Character:WaitForChild("Right Arm")
Motor6D.Part0 = Character:WaitForChild("Right Arm")
Motor6D.Part1 = Handle
Motor6D.Name = "Blade"
Motor6D.C0 = workspace.AlivePlayers.Dummy["Right Arm"].Blade.C0
local RaycastHitbox = require(game.ServerStorage.RaycastHitboxV3)

function module:Fire(TimeLength, Character)
	
	local Damage = 10
	local Hitbox = RaycastHitbox:Initialize(Character, {Character})

	Hitbox.OnHit:Connect(function(hit, humanoid)
		print(hit.Name)
		humanoid:TakeDamage(Damage)
	end)

	Hitbox:HitStart()
	wait(TimeLength) -- I set timelength to 6 seconds
	Hitbox:HitStop()
	
end

return module

Does anyone know how to fix this bug?

local Hitbox = RaycastHitbox:Initialize(Character, {Character})

here is the error

the first parameter of Initialize is the model containing the part that contains the DmgPoint attachments, it HAS to be a model, so if your sword is 1 part just model it anyway.

correct syntax would depend on your hierarchy but something like this if your sword is a tool

local Hitbox = RaycastHitbox:Initialize(Character.Tool.Model, {Character})