What object are you calling that from? I'm going to assume this code is in obj_shop or something similar.
The obj_Player in your code may not be targeting a specific instance (the player in the room), but instead the actual object. I would try using the
with command to get the instance.
Code:
with (obj_Player) {
sprite_index = spr_Green;
}
Again, this is only if you're calling that from a different object. If the player itself is using that code, make sure it doesn't reference the object like that, and instead just use
Let me know if it helps