Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to wait for a remote event to finish before continuing?

I can't figure out how to pause after you fire a remote event until that remote event is finished? I have tried repeating wait until something was done (for instance, if the remote event gave a player gold, I would repeat wait until the players gold value changed)

Is there a general function or technique that I can call to wait for any particular remote event to finish before the local script continues?

Ps. Sorry for no code but I don't find t necessary here.

3 comments

2

FireServer() doesn't wait for server to finieh handling the event. Try using a RemoteFunction instead.

0

Oh I see, is this because the remote function has to finish in order to fill in the variable with the return value?

0

Yup

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.