Problem with tables

i’m having a problem with tables.
it does this: https://gyazo.com/fa5c3b64b47a74fc655efd2275a124c4.mp4
I dont see any real problems within the scripts.

the localscript doesnt look like it has problems

print(#Swords)
for i = 1,#Swords do
  Attack:FireServer(k.KeyCode,Mouse.UnitRay.Direction,Swords[i])
  FX:FireServer(k.KeyCode,Swords[i])
  table.remove(Swords,i)
  task.wait(0.4)
end

nor does the serverscript

for i = 1,2 do
    Param2.Transparency = 1
    local AttackBlade = rs.AttackBlade:Clone()
    AttackBlade.CFrame = CFrame.lookAt(Param2.Position,Param2.Position + Param1)*CFrame.Angles(math.rad(90),0,0)
    AttackBlade.Parent = workspace

    fxmod.Velocity(AttackBlade,Param1*65)
    debris:AddItem(AttackBlade,3.75)

    local newHitbox = rch.new(AttackBlade)
    newHitbox.Visualizer = false
    newHitbox.RaycastParams = raycastParams
    newHitbox:HitStart()

    debris:AddItem(Param2,2)

    local c
    c = newHitbox.OnHit:Connect(function(hit,hum)
        if hum then
            fxmod.TakeDamage(Character,hum.Parent,8,110)
            newHitbox:HitStop()
            task.spawn(function()
                fxmod.DamageOrb(AttackBlade.Position,Color3.new(1,0,0),Vector3.new(50,50,50),4,Character,10,100)
            end)

            AttackBlade:Destroy()
        end

        c:Disconnect()
    end)

    task.wait(0.1)
end

wht i’m currently experiencing is that it somehow errors even though it does exist

Can you please show us the start of the function, and what parameters are called?