Hi.
It seems the logic is wrong, as.
if you spawned the object and did not send an event to it, that might be the issue.
But if i understand correct you want to store cube 1 in a variable on the spawned cube 2.
If so :
On cube 2, best is to name your fsm (for example 'Data')
Spawn the object and store it in a variable (cube 2).
Then use 'Set Fsm Game Object' and use the stored variable (cube 2)
and fsm 'Data' (for example)
and variable 'X'
There are "Set Fsm" actions for int/float/etc.
you can find even more on the
Ecosystem (for example Fsm Bool Test).