of     2   
chevron_rightchevron_rightchevron_right

Origin_Sea
#141326331Thursday, July 24, 2014 12:16 AM GMT

How do you wait exactly 1 second?
super10099
#141326559Thursday, July 24, 2014 12:18 AM GMT

wait(1)
Origin_Sea
#141326619Thursday, July 24, 2014 12:18 AM GMT

No i mean EXACTLY 1 second print(wait(1)) >> 1.120308409813
Origin_Sea
#141326746Thursday, July 24, 2014 12:19 AM GMT

btw thx for reminding me how to print ;3
128GB
#141326819Thursday, July 24, 2014 12:20 AM GMT

for a = 1, 100 do x = wait(1) print(x) end As you can see wait(1) is never the same So your best bet is to use wait(1) and let that little difference not matter because there is no way to do like wait(0.9995) to try and get that little difference off because its never the same If you don't mind busy waiting (And you should because it freezes the game till the time is up) local x = tick() repeat until (tick() - x) >= 1
super10099
#141326907Thursday, July 24, 2014 12:21 AM GMT

print(math.floor(wait(1))) now u got 1
128GB
#141327587Thursday, July 24, 2014 12:27 AM GMT

@Super I laughed harder than I should have
warspyking
#141327649Thursday, July 24, 2014 12:28 AM GMT

Hmmm Tough question.... Have you tried something like... local T1 = tick() repeat game:GetService("RunService").Stepped:Wait() until T1 - tick() == 1 or T1 - tick() < 1 It's a very lame attempt though.
128GB
#141327867Thursday, July 24, 2014 12:30 AM GMT

repeat game:GetService("RunService").Stepped:Wait() Is the same as Wait() Because its basically just calling the Wait() function every time the RunService steps Might as well say x = tick() repeat wait() until (tick - x) >= 1
warspyking
#141328061Thursday, July 24, 2014 12:32 AM GMT

Well then use RendrStepped with some fancy RemoteFunction/RemoteEvent
Origin_Sea
#141328999Thursday, July 24, 2014 12:41 AM GMT

This is a mystery for advanced and master scripters.
Notunknown99
#141329620Thursday, July 24, 2014 12:47 AM GMT

Impossible. It might not even be possible to wait exactly one second in reality.
Notunknown99
#141329704Thursday, July 24, 2014 12:48 AM GMT

Hmm... Had not factored in relativity....
warspyking
#141331703Thursday, July 24, 2014 1:09 AM GMT

@Not Are you insane? A second is just a measurement of time in which we humans had come up with. We can obviously wait that much. Also duh, I wait that long all the time. Speaking of waiting a second a lot, thank goodness it's summer XD
Notunknown99
#141331930Thursday, July 24, 2014 1:11 AM GMT

@warspyking: But what is the definition of one second? Does it HAVE one? If so, does its method of measurement ALWAYS return the same time, or is it an average? If it is an average, then it may be impossible to attain the average value.
128GB
#141331953Thursday, July 24, 2014 1:11 AM GMT

@War It is for that exact reason that a computer can not understand how long a second is and can not wait exactly that long Try to describe in words how long a second is, much less in a computer language.
Kodran
#141332872Thursday, July 24, 2014 1:20 AM GMT

The length of time of 9,192,631,770 amounts of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium 133 atom.
Notunknown99
#141332930Thursday, July 24, 2014 1:21 AM GMT

@Kodran: Is that always exactly the same length of time?
128GB
#141333221Thursday, July 24, 2014 1:23 AM GMT

1 second is an idea, so yah.
cntkillme
#141333390Thursday, July 24, 2014 1:25 AM GMT

No one and nothing can wait exactly 1 second when they want.
Kodran
#141333700Thursday, July 24, 2014 1:28 AM GMT

Yes, like 1 gram is defined as the mass of one cubic centimeter of water at 4°C and 1 lightyear is the distance light travels in 1 year in a vacuum.
warspyking
#141333759Thursday, July 24, 2014 1:28 AM GMT

A second is 1/60th of a minute. A minute is 1/60th of an hour. An hour is 1/24th of a day. A day is 1/360th of a year (unless it's a leap year) and a year is the amount of time it takes for the earth to rotate around the sun. There done in words... Now for Lua XD EarthAroundSunTime = 0 --I got stuck here LOL A_year = EarthAroundSunTime A_day = A_year/365 or A_year/366 An_hour = A_day/24 A_minute = An_hour/60 A_second = A_minute/60
Notunknown99
#141333959Thursday, July 24, 2014 1:30 AM GMT

1 day ~= 24 hours (slightly less) 1 year ~= 365.242 days
cntkillme
#141333975Thursday, July 24, 2014 1:30 AM GMT

More like the other way around, minutes, hours, etc. are defined by seconds. And there is not exactly 24hrs in a day, and 360 days in a year (you probably meant 36, but that is still incorrect)
Notunknown99
#141334078Thursday, July 24, 2014 1:31 AM GMT

Oh, wait. I mean "approximately equal to" with the second "~=" 1 year approx. equals 365.242 days.

    of     2   
chevron_rightchevron_rightchevron_right