I Need Help With Global Variables.

I tried without success to make a script that can change the float value in another object to the one that’s in the object using the script.

could anyone help me with this.
I think this requires Global Variables.I have tried
GameLogic.yyy == own.yy
on the object that sends the value.
and
y == GameLogic.yyy
on the object that needs to receive the value.

== is for comparing, like “if prop == 5:”
= is for assigning, like “prop = 5”
try it with single =

It works now thanks