Objective: i want the program to first call the local script and during the execution of the local script i dont want the script to continue, i want the normal script wait until the local script have finished.
The problem is that when i run my script the script continue the side script and the local script at the same time and i want a lineal execution.
i have a code but it became so complex, so i rather if you can please help me with your knowledge.
if you need another detail that can help you to understand, im happy to share with you!
This is vague, but assuming you want a server script to wait for a client script to finish something, you can have the client script fire a remote event, and have the server yield until the remote event is fired
RemoteFunctions allow for this, RemoteEvents are only a one way connection (Server - Client and vice versa), while RemoteFunctions are two way connection (Server - Client - Server, and vice versa), you are able to return things with RemoteFunctions when fired, for the Server or Client to access.