Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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.

2
FireServer() doesn't wait for server to finieh handling the event. Try using a RemoteFunction instead. Amiaa16 3227 — 6y
0
Oh I see, is this because the remote function has to finish in order to fill in the variable with the return value? PoePoeCannon 519 — 6y
0
Yup Amiaa16 3227 — 6y

1 answer

Log in to vote
0
Answered by
Validark 1580 Snack Break Moderation Voter
6 years ago

Use a RemoteFunction

Ad

Answer this question