Transfer script information from one to another

Transfer script information from one to another

Hello, fellow developers. I have one critical question that if its answer is true, it’ll change the way I am working in Roblox Studio.

  1. What do I want to achieve?
    A way to make the scripts communicate with each other.

  2. What is the issue? The only way I know it thru _Gs, but if they are too many global variables the program cancels itself.

  3. What solutions have you tried so far? Asked a few times on Discord. Someone mentioned ModuleScript, but I am not sure they will solve my dilemma.

For example, when my character steps on a block I want to make a type of message and the whole script in the game cloud sees it and potentially changes something.

I need a practical _G replacement.
Thanks in advance :slight_smile:

To the person that asks for similar help:
I just found and tested a method.
The Bindable events do it perfectly.

Modules are also a good choice; they are not for Roblox only, and (in my opinion) they are less complicated and more understandable.

1 Like