From Garry's Mod
Revision as of 02:46, 29 December 2015 by Zombine
Prints 'Hello, World!' in console and sleeps for a second.
function ENT:Think() print("Hello, World!") self:NextThink( CurTime() + 1 ) return true -- Note: You need to return true to override the default next think time end
Hello, World! every second the entity exists in the world.