From what I see on roblox wiki, wait() can only go as fast as .03 seconds. I need to go faster than that. Is there anyway is can go faster, or what is the fastest I can go if I am wrong?
Heres the part of my script that needs the faster wait.
while true do wait(.03) --Needs to be .001 for i, folder in pairs(clockFolder:GetChildren()) do local clock = folder.Clock local getLength = lengthFolder[folder.Name]:GetPlayingAnimationTracks() for i, track in pairs (getLength) do if clock.Value >= track.Length then clock.Value = 0 else clock.Value = clock.Value + .03 -- Also needs to be .001 end end end end
It can go to 0.03 only. There could be other ways ( I suggest looking through the web), but I could lag your game, a lot.
you could use RunServices Heartbeat or Renderstepped, i think those are fastest but lag a lot
No I don't think the limit is 0.03s(Not sure, I read it somewhere that the limit is 0,03s too), but according to https://devforum.roblox.com/t/how-to-use-wait-for-less-than-0-1-seconds/413781(Link blocked, you may want to copy and paste). I've seen game that waits up to 0.0000001 and more and this is crazy because this can cause much lag to the game which I don't recommend.
while true do wait(.001) -- Nope, the limit is not .03 for i, folder in pairs(clockFolder:GetChildren()) do local clock = folder.Clock local getLength = lengthFolder[folder.Name]:GetPlayingAnimationTracks() for i, track in pairs (getLength) do if clock.Value >= track.Length then clock.Value = 0 else clock.Value = clock.Value + .001 end end end end