Error with _G. (passing vars between scripts)

Hello, I named a rope with the player name to disconnect him from the rope with remote event.
when I’m trying to pass the player name between scripts with _G. I’m getting error

(I’m trying to remove the rope here)

https://gyazo.com/7b43e8e76a0a7b4b631a1ac674ed84c2

https://gyazo.com/7418863c5e4561acdbc1004d13dfa514

Are they both LocalScripts or Scripts?

Global variables are shared only between the “script type” they were created on. A global variable created on a Script cannot be accessed by a LocalScript

1 Like

o, One is LocalScript and another is script,
there is another option to pass Vars between scripts???

For Local to Server communication, or Server to Local communication, you’ll need to use Remote Events. I don’t think _G works with local scripts.

RemoteEvents or remotefunctions