# How to use PlayerAddedEvent / PlayerRemovedEvent from Playspace?

**URL:** <https://forums.unrealengine.com/t/how-to-use-playeraddedevent-playerremovedevent-from-playspace/757878>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite\
**Created:** [January 27, 2023, 8:13am UTC](https://forums.unrealengine.com/t/how-to-use-playeraddedevent-playerremovedevent-from-playspace/757878 "2023-01-27T08:13:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jstKamui](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jstkamui/32/634995_2.png) [@jstKamui](https://forums.unrealengine.com/u/jstKamui)\
**Post date:** [January 27, 2023, 8:13am UTC](https://forums.unrealengine.com/t/how-to-use-playeraddedevent-playerremovedevent-from-playspace/757878/1 "2023-01-27T08:13:03Z")

</div>

Has anyone figured out how to use the PlayerAdded/PlayerRemoved events? I’ve been trying to find a way to grab it but cannot find a way.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/8/1586fb296b1073b3cdebea95a8b24eeb14ed7c30.png)

---

<div class="post-metadata">

**Author:** ![capen\_r](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/capen_r/32/1145494_2.png) [@capen\_r](https://forums.unrealengine.com/u/capen_r)\
**Post date:** [January 27, 2023, 3:21pm UTC](https://forums.unrealengine.com/t/how-to-use-playeraddedevent-playerremovedevent-from-playspace/757878/2 "2023-01-27T15:21:56Z")

</div>

Hey @jstKamui! `PlayerAddedEvent()` and `PlayerRemovedEvent()` must both be called as functions. So your code might look something like this:

`Self.GetPlayspace().PlayerAddedEvent().Subscribe(YourFunction)`

And YourFunction would need to take an argument of type `player`, like this: `YourFunction(Player : player)`.

Check that you have the correct using statement at the top of your Verse file: `using { /Fortnite.com/Playspaces }`

Also be sure to check out the [Coding Device Interactions](https://dev.epicgames.com/documentation/unreal-editor-fortnite/en/1YXJ/Verse/coding-device-interactions-in-verse) tutorial in the Verse documentation to learn more about subscribing and events. Keep in mind that the examples shown there with `InteractedWithEvent` do not use parentheses because `Button` allows direct access, instead of requiring a function call.

---

<div class="post-metadata">

**Author:** ![jstKamui](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jstkamui/32/634995_2.png) [@jstKamui](https://forums.unrealengine.com/u/jstKamui)\
**Post date:** [January 28, 2023, 2:20am UTC](https://forums.unrealengine.com/t/how-to-use-playeraddedevent-playerremovedevent-from-playspace/757878/3 "2023-01-28T02:20:52Z")

</div>

Oh okay, I see now! I’ll give this a try later tonight. Thanks for the reply!
