Beginner Problem translate transform position

Hell Guys I have a problem.

I have a Character moving by script:

transform.Translate(0,Input.GetAxis(“Horizontal”),0);

Now if I push a Button and I want to teleport to lets say: (45,23,54) World Coordinates, I use

transform.position = Vector3(45,23,54);

But now my Charcter Is now stuck on this position.I cant move anymore.

So what can I do ??? Set a bool and switch it on for only one time and set him immediately back???

Greeting for tips Ideas and solutions.
Thanxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Post your script. (can’t really tell what is happening) Use UBB code tags.

less x’s and the entire code would be handy :stuck_out_tongue:

Thank you for reply.

The problem is solved, because it did work it was another reason.

Thanks