Skip to content

baseinstance

roblox.bases.baseinstance

This file contains the BaseInstance object, which represents a Roblox instance ID.

BaseInstance (BaseItem)

Represents a Roblox instance ID. Instance IDs represent the ownership of a single Roblox item.

Attributes:

Name Type Description
_shared ClientSharedObject

The ClientSharedObject.

id int

The instance ID.

Source code in roblox/bases/baseinstance.py
class BaseInstance(BaseItem):
    """
    Represents a Roblox instance ID.
    Instance IDs represent the ownership of a single Roblox item.

    Attributes:
        _shared: The ClientSharedObject.
        id: The instance ID.
    """

    def __init__(self, shared: ClientSharedObject, instance_id: int):
        """
        Arguments:
            shared: The ClientSharedObject.
            instance_id: The asset instance ID.
        """

        self._shared: ClientSharedObject = shared
        self.id: int = instance_id

__init__(self, shared: ClientSharedObject, instance_id: int) special

Parameters:

Name Type Description Default
shared ClientSharedObject

The ClientSharedObject.

required
instance_id int

The asset instance ID.

required
Source code in roblox/bases/baseinstance.py
def __init__(self, shared: ClientSharedObject, instance_id: int):
    """
    Arguments:
        shared: The ClientSharedObject.
        instance_id: The asset instance ID.
    """

    self._shared: ClientSharedObject = shared
    self.id: int = instance_id