local timeRan = 0
local now = GetTime()
if now - timeRan >= X then
timeRan = now
-- do your shit
Quote from Nirran »
thnx,got it working cept now im adding a feature and cant find "string to number" function
Quote from JaedxRapture »
"Returns the system uptime of your computer in seconds, with millisecond precision."
It actually returns the amount of seconds since your computer booted up.
Quote from egingell »
... which is fine since all you need is a point of reference.
That being said, time([ table ]) returns the Epoch time, based on your computer's time and definition of "Epoch time", if you need the exact time.