# Variables Connections Problem

**URL:** https://forum.kirupa.com/t/variables-connections-problem/259331
**Category:** Uncategorized
**Created:** [May 3, 2008, 3:49pm UTC](https://forum.kirupa.com/t/variables-connections-problem/259331 "2008-05-03T15:49:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![baian](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@baian](https://forum.kirupa.com/u/baian)
#### Post date: [May 3, 2008, 3:49pm UTC](https://forum.kirupa.com/t/variables-connections-problem/259331/1 "2008-05-03T15:49:40Z")

</div>

Hello Kirupa-clan 😃  
Yeah it’s me again…:sigh:

ok down to the problem.

the thing is that i have a global var on the main line “Gvar”…so far good ?  
next there’s a Mc that is supposed to change a variable called “ParentVar”  
but… the ParentVar is not defined within the Mc but rather it’s passed to it  
by :  
OnClipEvent(load) {  
ParentVar = \_global.Gvar  
//the global variable is passed to the Mc  
}  
here’s the problem :  
now once the global variable is passed down, at some point in the mc  
i want the Mc to change “It’s” ParentVar witch in this case is \_global.Gvar eg. (ParentVar = “HELLO”) and that should change \_global.Gvar problem is that this will only change the parentVar and not the global var, I know the above code is logicly wrong, so i’m asking is there another way around ?  
the only reason i’m doing this way is that i want to have mutiple MC’s that changes Mutiple Globals while using single Mc instance copies.  
is it possible ?  
Please reply soon, thank you in advance.:ne:  
…
