How To Make An Object Appear In Front Of Player Without Cloning?

How do you make a C# script where a public gameObject is placed in front of a player (also public gameObject) without cloning it?

What I got so far:

Instantiate (Block, Player.transform.position + (Player.transform.forward * 2), Player.transform.rotation);

I want the code above but without cloning it.

Please help.

Thanks in advance! :slight_smile:

hi , simply set your block position and rotation like you have already done :

Transform block;
block.position=Player.transform.position+(Player.transform.forward * 2);
block.rotation = Player.transform.rotation;

this will set position without cloning :smiley: