TruWorlds

Player

Inherits: Instance

A player is a user client connected to the game server.

Properties

Character Instance?

The CharacterController that this player is using, if any.

IsElevatedUser bool

True if this player is a TruWorlds Crew Member; false otherwise.

MemberTier MemberTier

The current membership tier of the player.

PlayerStartOverride Instance?

If set, this Player will always spawn their CharacterController at the specified PlayerStart instance, overriding the default spawn selection behavior.

UserId int

The ID of the player's TruWorlds account.

Functions

Kick()

Kicks this player from the server with an optional reason. Must be called server-side.

LoadCharacter()

Spawns a fresh CharacterController for this player immediately, canceling any pending respawn. Must be called server-side.

Signals

CharacterAdded CharacterController

A signal emitted when a new CharacterController is created for this player.

Chatted string

A signal emitted when this player sends a chat message.