Object weird scaling

Godot Version

4.5.1

Question

I’ve been dealing with this issue of objects not scaling at all even when the script says it to, also when i load in the scene deleting the other one, it ignores scaling and just doesnt scale at all, but rotation works any thoughts?, heres the script:

pickedObject = objectsInRange[0]
pickedObject.scale = Vector3(0.5,0.5,0.5)
pickedObject.rotate_z(randf_range(-15.0,15.0))
pickedObject.set_selection(false)
pickedObject.set_collision(false)
pickedObject.reparent(opm)
pickedObject.global_position = opm.global_position

heres when picking up objects:

and when reloading the scene:

Object scale is inherited through the node hierarchy. Is anything above it setting a scale?

no nothing is getting scaled, its a child of a marker i actually tried scaling the marker to 0.5 in the inspector but that didnt make any difference maybe i have to scale the marker with code aswell?

it seems to be only visual when the game is running in the inspector it is transformed