• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    Player

    The 'Player' class in Highrise represents each individual participant in the game. It is a crucial element, acting as the bridge between the player's real-world actions and their in-game avatar's behaviors.

    Properties

    CharacterChanged

    ClientAndServer
    ReadOnly

    Event fired when the player's character changes. This is called when player.character is set to a new object and not when the character's outfit changes. Event Parameters: Player: the player whose character object changed New Character: the new character object Old Character: the previous character object, if it exists

    PetOutfitChanged

    ClientOnly
    ReadOnly

    Event fired when the player's pet changes, either by changing to a different pet or changing the accessories equipped to the current pet. Event Parameters: Player: the player whose pet changed Outfit: the new outfit of the pet

    StartedSpeaking

    ClientOnly
    ReadOnly

    Event fired when the player starts talking in a voice channel. Event Parameters: Player: the player who started speaking

    StoppedSpeaking

    ClientOnly
    ReadOnly

    Event fired when the player stops talking in a voice channel. Event Parameters: Player: the player who stopped speaking

    activeChannel

    ClientAndServer
    ReadOnly

    The chat channel the player is currently active in.

    character

    ClientAndServer

    The character that represents this player in the world. It allows you to manipulate the character's properties and behavior, such as changing its appearance or controlling its movement. Only server scripts can set the character.

    The transform where chat bubbles are spawned. It can be used to position objects above a character's head.

    hasPet

    boolean
    ClientOnly
    ReadOnly

    Returns true if the player has a pet, false otherwise.

    id

    number
    ClientAndServer
    ReadOnly

    An identifier for the player's current connection to the world. If the player leaves and joins the same world instance or a different one this value will change. For a unique identifier for the player that will not change, use player.user.Id.

    isAgeVerifiedAbove18

    boolean
    ClientAndServer
    ReadOnly

    True if the player is above the age of 18, false otherwise.

    isDestroyed

    boolean
    ClientAndServer
    ReadOnly

    True if the player has left the world, false otherwise. If the player rejoins the world, a new Player object will be created, so this value will not change after the player has left. Use this instead of comparing to nil when checking if a Player object is valid.

    isDisconnected

    boolean
    ClientAndServer
    ReadOnly

    isLocal

    boolean
    ClientOnly
    ReadOnly

    isModerator

    boolean
    ClientAndServer
    ReadOnly

    True if this player has moderation rights in this world instance. If this world instance is an owned room, it will be true for the room owner and any moderators they have added. For world instances that are not owned rooms, it is true for the world owner and any members of the world.

    isSpeaking

    boolean
    ClientOnly
    ReadOnly

    Returns whether the player is currently speaking in a voice channel.

    isSubscriber

    boolean
    ClientAndServer
    ReadOnly

    Whether this player has an active subscription to Highrise+.

    name

    string
    ClientAndServer
    ReadOnly

    The name of the player. This can be used to identify the player in the game in the chat or in the leaderboard, for example.

    pet

    ClientOnly
    ReadOnly

    Contains information about the player's current pet, nil if the player does not have a pet.

    user

    ClientAndServer
    ReadOnly

    The user associated with the player.

    When proximity chat is enabled, voice position is the position used for this player when calculating voice volume. If this is not set, the character's position is used.

    voiceVolume

    number
    ClientOnly

    If this player is speaking, this returns the volume of their voice on a scale from 0-1.

    Methods

    IsUsingPetType

    ClientOnly

    Returns whether the player is currently using a pet of the specified type. This type matches the value returned by player.pet.skeletonId.

    Parameters

    petId
    string

    Returns

    boolean

    Returns true if the pet type matches, otherwise false.

    Updated 7 days ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.