how to make a function that repeats something every secound?

how to make a function that repeats something every secound?, i have been looking on the wiki but i only found this.

could you guys help me?

//thanks

you’ll want to use a timer

Take a look at the timer library, especially **[Timer.Create

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Timer.Create)**.

[lua]timer.Create(‘mytimer’, 1, 0, function() print(‘This is running every second!’) end)[/lua]

[editline]25th October 2010[/editline]

broke my automerge :ninja:

thanks.