i want something to update guis in real time, but while using a remoteevent. The problem i come across is remote events have a delay every time you use it. Wait() without second delays seems to be to slow to be considered real time so, I'm asking if there's anything faster than wait() but with a delay.
COMMUNITY QUESTION
Is there a way to yield the script other than wait()?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

7 comments
@MCAndRobloxUnited what do you mean by that? tick() is just a clocked time since 1970. even then how would i use it to delay the script?
wait i think i see what you're saying, use tick to delay the script for a little less than a frame, causing the script to yield for that second. Smart...
tick() is not for yielding the thread. Just stick with wait(). No need to reinvent the wheel.
Have you tried using the
RenderStepped(client only) event ofRunService? It will fire every time a player's frame changes, or 1/60 of a second if a player's FPS is 60. https://developer.roblox.com/api-reference/event/RunService/RenderStepped@incapaxx the time it would take for the gui to update would be insanely slow while using wait()
@TheeDeathCaster I'm looking to yield a script just enough to the point where remoteevents can handle using Renderstepped or heartbeat would only cause errors.
Have you tried using the
:Waitpart of events where it'll yield the script until the event fires?Event:Wait()