I have not found any example on google about how to make scripts interact with each other. If someone can provide me with one little (commented) example. I will be very happy.
You could use a BindableEvent
, and :Fire() it from script 1. Then, in script 2, you can either do one of the following:
Wait for the event to be fired.
Bind a function to the event.
How would you do these things?
--Fire the event from script 1 BindableEvent:Fire() --Wait for the event in script 2 BindableEvent.Event:Wait() --Or, Connect to it in a function BindableEvent.Event:Connect(functionName)