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)
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)
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
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