# Hello, in my Verse code, I want to get the player that the button is linked to, not the player who pressed the button. How can I do this? 

**URL:** <https://forums.unrealengine.com/t/hello-in-my-verse-code-i-want-to-get-the-player-that-the-button-is-linked-to-not-the-player-who-pressed-the-button-how-can-i-do-this/2324325>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [February 9, 2025, 2:38pm UTC](https://forums.unrealengine.com/t/hello-in-my-verse-code-i-want-to-get-the-player-that-the-button-is-linked-to-not-the-player-who-pressed-the-button-how-can-i-do-this/2324325 "2025-02-09T14:38:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Procuk28](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Procuk28](https://forums.unrealengine.com/u/Procuk28)\
**Post date:** [February 9, 2025, 2:38pm UTC](https://forums.unrealengine.com/t/hello-in-my-verse-code-i-want-to-get-the-player-that-the-button-is-linked-to-not-the-player-who-pressed-the-button-how-can-i-do-this/2324325/1 "2025-02-09T14:38:25Z")

</div>

![Screenshot_3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/f/0bf75d917dea9bf5351261ee044143597f0a533d.png)  
I am trying to make a arresting system but every time I clicked the button the person who clicked button putting in stasis I want put in stasis who has button on his back

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [February 10, 2025, 9:08am UTC](https://forums.unrealengine.com/t/hello-in-my-verse-code-i-want-to-get-the-player-that-the-button-is-linked-to-not-the-player-who-pressed-the-button-how-can-i-do-this/2324325/2 "2025-02-10T09:08:09Z")

</div>

If you only have one button like you seem to, you can just store the Agent whenever AttachToPlayer(:agent) is called
