script that hold primary attack

what is lua code for holding primary attack for few secs?

For tracking players holding the primary?
To force them to use primary longer than inputed?
Info pls

for script that can be opended trought concole wich makes you hold your primary attack for few secs and do that again thats what i am trying to do sorry if i am unclear

This is a very simple way of doing it.

timer.Simple(time, function() RunConsoleCommand("-attack") end)

i get this Couldn’t include file ‘mining.lua’ (File not found) (<nowhere>) is this location right? E:\gmod\garrysmod\lua

is there really simple solution in front of my eyes that i just cant realize?

fixed mod plz lock

just hit thread solved :?