Hmmm... I don't see anything obviously wrong there. Is that the complete error? It looks a little strange to me. For example, if I intentionally put a typo in the
global_position property name to generate a similar error (because the actual property works fine here), I get the following error:
Invalid set index 'global_positionz' (on base: 'Camera3D') with value of type 'Vector3'.
While it's similar to your error, I'd expect it to match exactly - unless you haven't pasted the compete error?
Really, grasping at straws here as the code looks OK to me on the surface...