Skip to main content

7 replies

gausroth
Honored Contributor
November 21, 2025

It looks like the data context is right. Make sure you have the horizon/social API toggles on in the API section of the Script Settings. On line 37 you are setting player to the server player not a real player. Try this.entity.owner.get()

GitHub: https://github.com/Gausroth/HorizonWorldsTutorials.git Discord: https://discord.gg/hNyDQwdw4N YouTube: https://www.youtube.com/@GausRothTutorials
Ektelestis
Participant
November 21, 2025

All API are on and 

 /**

   * Handles the actual logic to open the invite panel.

   */

  private openInvitePanel() {

    const player = this.entity.owner.get();

sill doesn't work

gausroth
Honored Contributor
November 21, 2025

Try it in preview mode. I don't believe that panel works in the editor.

GitHub: https://github.com/Gausroth/HorizonWorldsTutorials.git Discord: https://discord.gg/hNyDQwdw4N YouTube: https://www.youtube.com/@GausRothTutorials
Ektelestis
Participant
November 22, 2025

Did that, I open it up to the web browser

gausroth
Honored Contributor
November 23, 2025

This could be a bug. I was unable to open it the other day. Make a bug report.

GitHub: https://github.com/Gausroth/HorizonWorldsTutorials.git Discord: https://discord.gg/hNyDQwdw4N YouTube: https://www.youtube.com/@GausRothTutorials
Ektelestis
Participant
November 24, 2025

Ok, but I have the script set to shared

gausroth
Honored Contributor
November 25, 2025

Try it as a default(server) script or local script?

GitHub: https://github.com/Gausroth/HorizonWorldsTutorials.git Discord: https://discord.gg/hNyDQwdw4N YouTube: https://www.youtube.com/@GausRothTutorials