# Is there any event that invokes when I Instantiate a player.

**URL:** <https://community.coherence.io/t/is-there-any-event-that-invokes-when-i-instantiate-a-player/687>\
**Category:** Help\
**Created:** [April 29, 2025, 8:04am UTC](https://community.coherence.io/t/is-there-any-event-that-invokes-when-i-instantiate-a-player/687 "2025-04-29T08:04:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijdicaprio](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@abhijdicaprio](https://community.coherence.io/u/abhijdicaprio)\
**Post date:** [April 29, 2025, 8:04am UTC](https://community.coherence.io/t/is-there-any-event-that-invokes-when-i-instantiate-a-player/687/1 "2025-04-29T08:04:11Z")

</div>

I am using GameObject.Instantiate to spawn player which has CoherenceSync component. And I want to store the network players in a Dictionary with their CoherenceSync. Is there any event that fires up when other clients Instantiate.

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [April 29, 2025, 11:54am UTC](https://community.coherence.io/t/is-there-any-event-that-invokes-when-i-instantiate-a-player/687/2 "2025-04-29T11:54:08Z")

</div>

Hello, we have a system for this called ClientConnections: [Client Connections | coherence Documentation](https://docs.coherence.io/manual/client-connections)

They can be used for exactly what you’re describing.

---

<div class="post-metadata">

**Author:** ![Alina](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@Alina](https://community.coherence.io/u/Alina)\
**Post date:** [April 30, 2025, 10:09am UTC](https://community.coherence.io/t/is-there-any-event-that-invokes-when-i-instantiate-a-player/687/3 "2025-04-30T10:09:49Z")

</div>

Hey! To add to Brit’s reply, we also have a Package Sample demonstrating how to implement exactly this, using Client Connections to keep track of the spawn points assigned to each player in a dictionary.

You can find it if you go to **coherence \> Explore Samples** , and import the **Sample Scenes**.  
Scene **7\_PlayerSpawner** is the relevant one. You can check out the implementation in `SpawnManager.cs` and tweak it as needed for your project.

---

<div class="post-metadata">

**Author:** ![abhijdicaprio](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@abhijdicaprio](https://community.coherence.io/u/abhijdicaprio)\
**Post date:** [April 30, 2025, 10:27am UTC](https://community.coherence.io/t/is-there-any-event-that-invokes-when-i-instantiate-a-player/687/4 "2025-04-30T10:27:23Z")

</div>

Thank you for your reply

---

<div class="post-metadata">

**Author:** ![abhijdicaprio](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@abhijdicaprio](https://community.coherence.io/u/abhijdicaprio)\
**Post date:** [April 30, 2025, 10:27am UTC](https://community.coherence.io/t/is-there-any-event-that-invokes-when-i-instantiate-a-player/687/5 "2025-04-30T10:27:58Z")

</div>

Thank you for the reply

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/b3aa79eb9519fac7aad7eba18f15a1e8ce60f6e2.png) [@system](https://community.coherence.io/u/system)\
**Post date:** [July 29, 2025, 10:28am UTC](https://community.coherence.io/t/is-there-any-event-that-invokes-when-i-instantiate-a-player/687/6 "2025-07-29T10:28:08Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
