Hi! I am making a “Level Completed” Gui and I need a RemoteFunction to fire the player from the server and wait until the player returns “Continue” or “Main menu”.
From what I know, firing RemoteFunctions from the server is really bad since an exploiter (the player we’re firing) could yield his script, which would then yield the server.
Is there a better and safe alternative?
If there isn’t, it’s probably okay since it’s a single player game, but lag on the client could yield the server too, right?
Why would you want to design it to yield? Remote events are generally safer and better than remote functions as they don’t yield if you use them appropriately.
I am making a “Level completed. Continue?” prompt that will prompt the player each time he completes a level.
As the server, I would have to wait before the player clicks one of two buttons - “Continue” or “Main menu”
Yes so when the player has activated a gui send the button he has clicked to the server. The server will validate if the button is real. Then decides if he wants to continue or go the main menu.