# How do I script this using blueprints?

**URL:** <https://forums.unrealengine.com/t/how-do-i-script-this-using-blueprints/1684710>\
**Category:** Programming & Scripting\
**Tags:** restart, unreal-engine, Blueprint, question\
**Created:** [February 12, 2024, 9:40pm UTC](https://forums.unrealengine.com/t/how-do-i-script-this-using-blueprints/1684710 "2024-02-12T21:40:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![The10thDoctor89](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The10thDoctor89](https://forums.unrealengine.com/u/The10thDoctor89)\
**Post date:** [February 12, 2024, 9:40pm UTC](https://forums.unrealengine.com/t/how-do-i-script-this-using-blueprints/1684710/1 "2024-02-12T21:40:13Z")

</div>

I’m trying to add a button on 2 widgets to restart my game (moving the player back to these coordinates - -10043.064624, -4250.417293, 6679.0, yes specific) but I’m a bit stuck on how to do this with blueprints so I would like some help, if you need anymore information I would be happy to give it

---

<div class="post-metadata">

**Author:** ![Nawrot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nawrot/32/618260_2.png) [@Nawrot](https://forums.unrealengine.com/u/Nawrot)\
**Post date:** [February 12, 2024, 10:09pm UTC](https://forums.unrealengine.com/t/how-do-i-script-this-using-blueprints/1684710/2 "2024-02-12T22:09:47Z")

</div>

Create empty blueprint to mark target location(i used BP\_Valholl)

then do this code:

 ![teleport_A](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/6/d268563a1ecfac2e1b516c7a9dbe1da9e876ab1e.png)  
this will copy whole transform together with scale

if you want to keep scale as default [1,1,1] do this instead:

 ![teleport_B](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/d/fad3dcf43ee9fe85ae0bd35068a02d8fca753054.png)

Place you blueprint exactly at location you want (you can set location manually from level editor)

ps. this code needs to be in player character (or pawn)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 12, 2024, 10:18pm UTC](https://forums.unrealengine.com/t/how-do-i-script-this-using-blueprints/1684710/3 "2024-02-12T22:18:55Z")

</div>

> [@The10thDoctor89](#):
>
> I’m trying to add a button on 2 widgets to restart my game (moving the player back to these coordinates - -10043.064624, -4250.417293, 6679.0, yes specific)

Sounds like this would work:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/6/b3679e301063920b37bb99a83f375016ee34c57b.png)

---

<div class="post-metadata">

**Author:** ![The10thDoctor89](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The10thDoctor89](https://forums.unrealengine.com/u/The10thDoctor89)\
**Post date:** [February 14, 2024, 8:25pm UTC](https://forums.unrealengine.com/t/how-do-i-script-this-using-blueprints/1684710/4 "2024-02-14T20:25:03Z")

</div>

thanks, this really helps
