Coding QC Sequences into Lua for Custom SWEP Animations

So I’m running into issues coding in some sequences from a QC file into my Weapon_Lightsaber.lua

This is my code thus far:



hook.Add("CalcMainActivity", "ACT_BB_R_C1_T1", function(ply, _)
    if (ply:GetNWBool("Swung", true)) then
        return ply:SetSequence(ply:LookupSequence( "r_c1_t1" ));
    end
end)

function SWEP:SetupDataTables()

self:NetworkVar( "Bool", 2, "Swung" )
self:NetworkVar( "Bool", 1, "NextAttack" )

end


function SWEP:PrimaryAttack()

	if self:SetSwung(true) then return end

	if self:SetNextAttack( 0.5 ) then 

	   self:SetSwung(false)
	end
	
	if ( !self.Owner:IsNPC() && self:GetEnabled() ) then

	end

end


(PLEASE DON’T THRASH ME IN THE COMMENTS, I’M NEW TO THIS)