Current Player
Points to the player who currently owns or is viewing the UI.
Introduction
Current Player is an object expression that points to the player who currently owns or is viewing the UI where the script runs. It only appears in UI scripts. You will not find this pill in a world object script, because a world script has no viewing player to point to. Do not confuse it with Player. Player is the activator carried by the event, the person who clicked the button or entered the trigger. Current Player is the player viewing the UI, and in a UI script those two can be the same person, but they come from different places. Use it when a UI script must act on the player looking at that UI, for example showing that player's own name, coins, or status on a panel. Feed it into Set, Execute, or Property as the target, the same way you use Player. The Current Player expression pill. caption
Properties
These are the properties you can read. The Set command only lists the ones you can change. Current Player ├─ Player │ ├─ Player Name (text): The player's display name. │ ├─ Is Show Name (boolean): Whether the player's name is shown. │ ├─ ID (text): The player's ID. │ ├─ Profile Photo (image): The player's profile photo. │ └─ Controlled Character │ ├─ Character │ │ ├─ Facing Mode (choice): How the character faces. │ │ ├─ Character Rotation (number): The rotation of the character. │ │ ├─ HeadTopPosition (Vector3) │ │ │ ├─ HeadTopPositionX (number): The head top position's X coordinate. │ │ │ ├─ HeadTopPositionY (number): The head top position's Y coordinate. │ │ │ └─ HeadTopPositionZ (number): The head top position's Z coordinate. │ │ ├─ Lock Axis X (boolean): Whether the character's X axis is locked. │ │ ├─ Lock Axis Z (boolean): Whether the character's Z axis is locked. │ │ ├─ Is Running (boolean): Whether the character is currently running. │ │ ├─ Run Speed (number): How fast the character runs. │ │ ├─ Crouch Speed (number): How fast the character moves while crouching. │ │ ├─ Jump Height (number): How high the character jumps. │ │ ├─ Jump Count (number): How many times the character can jump. │ │ ├─ Current Jump Count (number): How many times the character has jumped. │ │ ├─ Disable jump effects (boolean): Whether jump effects are disabled. │ │ ├─ Current Checkpoint (Vector3) │ │ │ ├─ (checkmark) (boolean): Whether a checkpoint is set. │ │ │ ├─ X (number): The checkpoint's X coordinate. │ │ │ ├─ Y (number): The checkpoint's Y coordinate. │ │ │ └─ Z (number): The checkpoint's Z coordinate. │ │ ├─ Controlling Player (object): Another Player. Opens the same branches as Player above, so the tree loops here. │ │ └─ Current Prop │ │ ├─ Key │ │ │ └─ Current Prop Holder (object): Opens the same structure as Character above, so the tree loops here. │ │ ├─ Hand Prop │ │ │ ├─ Pickable (boolean): Whether the prop can be picked up. │ │ │ ├─ Using Sound (sound): The sound played when the prop is used. │ │ │ └─ Current Prop Holder (object): Opens the same structure as Character above, so the tree loops here. │ │ ├─ Ranged Weapon │ │ │ ├─ Pickable (boolean): Whether the weapon can be picked up. │ │ │ ├─ Bullet Damage (number): Damage dealt by each bullet. │ │ │ ├─ Cool Down (number): Time between shots. │ │ │ ├─ Crit Chance (number): Chance of a critical hit. │ │ │ ├─ Crit Multiplier (number): Damage multiplier on a critical hit. │ │ │ ├─ Bullet Speed (number): How fast bullets travel. │ │ │ ├─ Range (number): How far the weapon can shoot. │ │ │ ├─ Damage Range (number): The range over which damage applies. │ │ │ ├─ Bullet Gravity (number): How much bullets drop over distance. │ │ │ ├─ Firing Effect (effect): The effect shown when firing. │ │ │ ├─ Hit Effect (effect): The effect shown on hit. │ │ │ ├─ Repel Effect (effect): The effect that pushes the target back. │ │ │ ├─ Knockback distance (number): How far the target is knocked back. │ │ │ ├─ Using Sound (sound): The sound played when the weapon is used. │ │ │ └─ Current Prop Holder (object): Opens the same structure as Character above, so the tree loops here. │ │ ├─ Melee Weapon │ │ │ ├─ Pickable (boolean): Whether the weapon can be picked up. │ │ │ ├─ Repel Effect (effect): The effect that pushes the target back. │ │ │ ├─ Knockback distance (number): How far the target is knocked back. │ │ │ ├─ Damage Value (number): Damage dealt by each hit. │ │ │ ├─ Cooldown (number): Time between attacks. │ │ │ ├─ Hit Effect (effect): The effect shown on hit. │ │ │ ├─ Crit Chance (number): Chance of a critical hit. │ │ │ ├─ Crit Multiplier (number): Damage multiplier on a critical hit. │ │ │ ├─ Sound (sound): The sound played when the weapon is used. │ │ │ └─ Current Prop Holder (object): Opens the same structure as Character above, so the tree loops here. │ │ ├─ Buildable │ │ │ ├─ Is Active (boolean): Whether the buildable is active. │ │ │ └─ Audio (sound): The buildable's audio. │ │ └─ Group │ │ ├─ Is Active (boolean): Whether the group is active. │ │ ├─ Position (Vector3) │ │ │ ├─ X (number): The position's X coordinate. │ │ │ ├─ Y (number): The position's Y coordinate. │ │ │ └─ Z (number): The position's Z coordinate. │ │ ├─ Rotation (Vector3) │ │ │ ├─ X (number): The rotation's X coordinate. │ │ │ ├─ Y (number): The rotation's Y coordinate. │ │ │ └─ Z (number): The rotation's Z coordinate. │ │ ├─ World Position (Vector3) │ │ │ ├─ X (number): The world position's X coordinate. │ │ │ ├─ Y (number): The world position's Y coordinate. │ │ │ └─ Z (number): The world position's Z coordinate. │ │ ├─ World Rotation (Vector3) │ │ │ ├─ X (number): The world rotation's X coordinate. │ │ │ ├─ Y (number): The world rotation's Y coordinate. │ │ │ └─ Z (number): The world rotation's Z coordinate. │ │ ├─ Scale (Vector3) │ │ │ ├─ X (number): The scale's X coordinate. │ │ │ ├─ Y (number): The scale's Y coordinate. │ │ │ └─ Z (number): The scale's Z coordinate. │ │ ├─ Forward (Vector3) │ │ │ ├─ X (number): The forward direction's X coordinate. │ │ │ ├─ Y (number): The forward direction's Y coordinate. │ │ │ └─ Z (number): The forward direction's Z coordinate. │ │ ├─ Up (Vector3) │ │ │ ├─ X (number): The up direction's X coordinate. │ │ │ ├─ Y (number): The up direction's Y coordinate. │ │ │ └─ Z (number): The up direction's Z coordinate. │ │ ├─ Right (Vector3) │ │ │ ├─ X (number): The right direction's X coordinate. │ │ │ ├─ Y (number): The right direction's Y coordinate. │ │ │ └─ Z (number): The right direction's Z coordinate. │ │ ├─ Color (color): The group's color. │ │ ├─ Texture (image): The group's texture. │ │ ├─ Enable Collision (boolean): Whether collision is enabled. │ │ └─ Collide With Camera (boolean): Whether the group collides with the camera. │ ├─ Character Avatar │ │ ├─ Skin Color (color): The character's skin color. │ │ ├─ Animation (asset): The character's animation. Click to pick a model. │ │ ├─ Head (asset): The character's head. Click to pick a model. │ │ ├─ Face (asset): The character's face. Click to pick a model. │ │ ├─ Coat (asset): The character's coat. Click to pick a model. │ │ ├─ Pants (asset): The character's pants. Click to pick a model. │ │ ├─ Shoes (asset): The character's shoes. Click to pick a model. │ │ └─ Other (asset): Other avatar parts. Click to pick a model. │ ├─ Character Health │ │ ├─ Is Active (boolean): Whether health is active. │ │ ├─ Max Health (number): The character's maximum health. │ │ ├─ Current Health (number): The character's current health. │ │ ├─ Show Health Bar (boolean): Whether the health bar is shown. │ │ ├─ Cooldown (number): Time before health changes again. │ │ ├─ Health Modifier (number): A value that modifies health. │ │ └─ Show Damage Popups (boolean): Whether damage numbers pop up. │ ├─ Audio │ │ ├─ Is Active (boolean): Whether audio is active. │ │ ├─ Audio (sound): The audio clip. │ │ ├─ Volume (number): How loud the audio is. │ │ ├─ Auto Play (boolean): Whether the audio plays automatically. │ │ ├─ Loop (boolean): Whether the audio loops. │ │ ├─ Spatial (boolean): Whether the audio is spatial (3D). │ │ ├─ Min Distance (number): The distance where the audio starts fading. │ │ └─ Max Distance (number): The distance where the audio is no longer heard. │ ├─ Timer │ │ ├─ Is Active (boolean): Whether the timer is active. │ │ ├─ Time (number): The timer's total time. │ │ ├─ Time Left (number): How much time is left. │ │ ├─ Auto Start (boolean): Whether the timer starts automatically. │ │ └─ Auto Restart (boolean): Whether the timer restarts automatically. │ └─ Group │ ├─ Is Active (boolean): Whether the group is active. │ ├─ Position (Vector3) │ │ ├─ X (number): The position's X coordinate. │ │ ├─ Y (number): The position's Y coordinate. │ │ └─ Z (number): The position's Z coordinate. │ ├─ Rotation (Vector3) │ │ ├─ X (number): The rotation's X coordinate. │ │ ├─ Y (number): The rotation's Y coordinate. │ │ └─ Z (number): The rotation's Z coordinate. │ ├─ World Position (Vector3) │ │ ├─ X (number): The world position's X coordinate. │ │ ├─ Y (number): The world position's Y coordinate. │ │ └─ Z (number): The world position's Z coordinate. │ ├─ World Rotation (Vector3) │ │ ├─ X (number): The world rotation's X coordinate. │ │ ├─ Y (number): The world rotation's Y coordinate. │ │ └─ Z (number): The world rotation's Z coordinate. │ ├─ Scale (Vector3) │ │ ├─ X (number): The scale's X coordinate. │ │ ├─ Y (number): The scale's Y coordinate. │ │ └─ Z (number): The scale's Z coordinate. │ ├─ Forward (Vector3) │ │ ├─ X (number): The forward direction's X coordinate. │ │ ├─ Y (number): The forward direction's Y coordinate. │ │ └─ Z (number): The forward direction's Z coordinate. │ ├─ Up (Vector3) │ │ ├─ X (number): The up direction's X coordinate. │ │ ├─ Y (number): The up direction's Y coordinate. │ │ └─ Z (number): The up direction's Z coordinate. │ ├─ Right (Vector3) │ │ ├─ X (number): The right direction's X coordinate. │ │ ├─ Y (number): The right direction's Y coordinate. │ │ └─ Z (number): The right direction's Z coordinate. │ ├─ Color (color): The group's color. │ ├─ Texture (image): The group's texture. │ ├─ Parent Object (object): The group's parent object. │ ├─ Enable Collision (boolean): Whether collision is enabled. │ ├─ Collide With Camera (boolean): Whether the group collides with the camera. │ ├─ Nth Child Object (number): A child object by its order (enter the number). │ ├─ Child Object Containing Tag (text): A child object with a given tag (enter the tag text). │ └─ Cover (image): The group's cover image. ├─ Inventory │ ├─ Capacity (number): The inventory's total capacity. │ ├─ Used Capacity (number): How much capacity is used. │ ├─ Currently Holding (object): The item currently held. │ └─ All Backpack Items (object): All items in the backpack. ├─ UI │ ├─ Current UI │ │ └─ UI Base │ │ ├─ Color (color): The UI's color. │ │ ├─ Alpha (number): The UI's transparency. │ │ ├─ Store (object): The store UI. │ │ ├─ Suit (object): The suit UI. │ │ ├─ Backpack (object): The backpack UI. │ │ └─ Layer 1 │ │ └─ Layer │ │ ├─ Is Active (boolean): Whether the layer is active. │ │ └─ Alpha (number): The layer's transparency. │ ├─ Controller UI (boolean): (checkmark only, no further properties) │ ├─ Character UI │ │ ├─ Joystick (object): The on-screen joystick. │ │ ├─ Jump Button (object): The on-screen jump button. │ │ └─ Toolbar (object): The on-screen toolbar. │ └─ UI 1 │ └─ UI Base: Same structure as Current UI above. ├─ Player Var │ ├─ Create variable (action): Create a new player variable. │ ├─ Coins (number): A player variable (this project's variable). │ └─ Health (number): A player variable (this project's variable). └─ Player Camera └─ Current Camera └─ Camera ├─ Presets (choice): The camera's presets. Options: Free, Over Shoulder, First Person, Horizontal 2D, Oblique 45, Overhead, Advanced, Orbit camera. ├─ Target (object): What the camera follows. ├─ FOV (number): The camera's field of view. ├─ Distance (number): How far the camera is from its target. ├─ Vertical Axis (number): The camera's vertical axis. ├─ Horizontal Axis (number): The camera's horizontal axis. ├─ Screen Center Y (number): The screen's vertical center. ├─ Offset (Vector3) │ ├─ X (number): The offset's X value. │ ├─ Y (number): The offset's Y value. │ └─ Z (number): The offset's Z value. ├─ Can Zoom (boolean): Whether the camera can zoom. ├─ Can Rotate V (boolean): Whether the camera can rotate vertically. ├─ Can Rotate H (boolean): Whether the camera can rotate horizontally. └─ Collision Detect (boolean): Whether the camera detects collisions.
Notes
Current Player only appears in UI scripts, not in world object scripts. It points to the player viewing the UI, while Player points to the event activator. In a UI script the two can be the same person, but they come from different places.