I'm messing around with wait (), and I've found out that even though I'm decreasing the wait time in an object by half when it's in motion, it still looks to be around the speed after wait (.0125) seconds.
How small can a wait () be without being 0?
4 answers
The minimum wait() time is 1/30 of a second (about 0.033), if you need to process something at smaller intervals than that then you'll have to use a LocalScript and connect to the RunService.RenderStepped event, which delays by approximately 1/60 of a second:
game:GetService("RunService").RenderStepped:connect(function()
--Fires around every 1/60 of a second
end)
The slowest wait is wait() which is per frame.I'm not sure but I think wait() it's equal to 0.0333 seconds.
1 comment
The 'frames' that you refer to are changing at 30 frames-per-second, 1/30 is 0.033 (recurring) not 0.3 - your answer is off by a factor of 10 I'm afraid - that would mean that the smallest wait time is bigger than a quarter of a second!
it can be anywhere between 0.1-what ever number like 200 or something
2 comments
It can be anywhere between 1/30th of a second and forever.
i know forever but just an example
wait() waits for 2 frames, but wait(0) waits for 1 frame.
4 comments
wait() and wait(0) are identical in function, this is a misleading answer - try running it both ways and you'll find that they are the same.
I've heard they are different.
When put to the test, I found that wait () was a tiny fraction of a second longer than wait (0)
It was on tip of the day on scripting helpers.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Are you sure you need a LocalScript to use RenderStepped?
Yes, I am sure. Servers (i.e. Global Scripts) don't "Render" anything, they don't have screens to render to, even! RenderStepped is a Local-Only event because it is to do with the Rendering of the Roblox game that you are in on YOUR computer, but no-one else's.