Skip to main content

7 replies

gausroth
Start Partner
Nov 21, 2025 7:11 PM UTC

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
Nov 21, 2025 7:31 PM UTC

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
Start Partner
Nov 21, 2025 7:50 PM UTC

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
Nov 22, 2025 1:27 AM UTC

Did that, I open it up to the web browser

gausroth
Start Partner
Nov 23, 2025 2:29 PM UTC

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
Nov 24, 2025 3:36 PM UTC

Ok, but I have the script set to shared

gausroth
Start Partner
Nov 25, 2025 3:27 PM UTC

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