HyperScript
Docs

← All of the Docs HyperVoice

Events HyperVoice

eventon voice connect:HyperVoice

Runs when a player's voice chat connects, a moment after they join

on voice connect:
    if {%player%.voicebanned} is true:
        mute voice of player

What this event gives a script

In the blockWhat it is
{_group}The group's name
eventon voice disconnect:HyperVoice

Runs when it disconnects

on voice disconnect:
    log "%player.name% left the voice chat"

What this event gives a script

In the blockWhat it is
{_group}The group's name
eventon voice group join "<name>":HyperVoice

Runs when a player joins that group, by a script or by themselves. Without a name: any group

on voice group join "Staff":
    send "&cStaff channel: keep it professional."

What this event gives a script

In the blockWhat it is
{_group}The group's name
eventon voice group leave "<name>":HyperVoice

Runs when they leave it

on voice group leave "Staff":
    send "&7You left the staff channel."

What this event gives a script

In the blockWhat it is
{_group}The group's name
Guide and examples
on voice connect:
    if {%player%.voicebanned} is true:
        mute voice of player

on voice disconnect:
    log "%player.name% left the voice chat"

on voice group join "Staff":
    send "&cStaff channel: keep it professional."

on voice group leave "Staff":
    send "&7You left the staff channel."

on voice group leave:
    log "%player.name% left the voice group %{_group}%"
SyntaxEffect
on voice connect:Runs when a player's voice chat connects, a moment after they join
on voice disconnect:Runs when it disconnects
on voice group join "<name>":Runs when a player joins that group, by a script or by themselves. Without a name: any group
on voice group leave "<name>":Runs when they leave it
  • Inside the blocks player is the player, and in the two group events {_group} is the group's name.