Getting the mouse position in the game world?

How do I do this? I don’t want the on-screen position. But I want the position of the mouse in the game world, so I can move a cube to it’s position or something else. Thanks :smile:

look at the example

Thank you.