SWEP has no Primary Fire Delay?

I’m making a SWEP but it doesn’t have primary delay. (Secondary delay works fine.)

This is in the SWEP settings.
[lua]SWEP.Primary.Delay = 30[/lua]

Primary Fire Code:
[lua]function SWEP:PrimaryAttack()

local tr = self.Owner:GetEyeTrace().Entity
if not tr:IsValid() then return end
if tr:IsPlayer() then else return end
if tr:GetPos():Distance( self.Owner:GetPos() ) > self.Primary.Distance then return end
	
if SERVER then
	self.Owner:EmitSound( self.Primary.Sound, 70, 150 )
	tr:TakeDamage( 5 ) --Damages Player for 5 HP
end

end[/lua]

Any way to add delay to this?

[lua]
self.Weapon:SetNextPrimaryFire( CurTime() + self.Primary.Delay )[/lua]

Awesome Donkie, thanks for helping me, appreciate it. :slight_smile: