I’m trying to find how to pause script running until local script is finished running. For now I’m using wait(n) which is awful and not practical. I found that bindable event has :Wait(), but that doesn’t fit in my case because I need to fire from client script to server script. The only solution I see is a remote event, except I don’t know how to fire it, as it doesn’t have :Wait() . Any suggestions?
RemoteEvent’s OnClientEvent/OnServerEvent do have a wait though?
local player = remote_event.OnServerEvent:Wait()
print(player) -- wait for the event to fire, then print the player who fired
lol it works. I’ve put :OnServerEvent instead .OnServerEvent . Nvm, thanks for your effort to respond!