Vaibhs11 Vaibhs11 loading
The x position block does return the clone's x position under the any hat block except ‘when flag clicked’:

when I start as a clone
say (x position) // Clone says the x position of the clone

when [space v] key pressed
say (x position) // Clone says the x position of the Clone and Sprite says x position of the Sprite

when I receive [message1 v]
say (x position) // Clone says the x position of the Clone and Sprite says x position of the Sprite

// and so on...

I'm not sure what you mean by what you said about the project, so can you share the project and provide the link?
Also, next time you have a question about coding, post it in the Help with Scripts forum.