How to make script pause until remote event is finished

The title pretty much explains it, but how do I make a script pause until a remote event finishes, so it is fired and then the code when a script receives the remote event is also finished

all you do is Remote.OnServerEvent:Wait() if I remember correctly

1 Like

Isn’t that to check when the remote event is fired?

No, its in the scriptsignal “wait” im pretty sure it waits until its fired and done (dont know tho)
Not on pc rn

Will that cause a few memory spikes though?

hopped on laptop rq


and no i dont think so
“causes script to pause”

Ok thanks!

(Character limit)
(Character limit)

you’re welcome, I just tried using it in a loop (100 times) and memory changes werent that drastic

1 Like