• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    Vector3Value

    Inherits from:

    Vector3Value class stores a single Vector3 value (3D coordinates), extending from Class.Value. It's designed for synchronizing 3D position, rotation, or direction data across all clients in a networked environment, such as object positions, spawn points, or movement directions. IMPORTANT: Values should be changed on the server side. The Changed event should be connected on the client side to receive updates. NOTE: You can optionally pass a player object as the third parameter to associate the value with a specific player. Alternatively, you can concatenate the player ID to the name: "ValueName" .. tostring(player.id)

    Properties

    value

    ClientAndServer

    Represents the synchronized Vector3 value. Changes trigger notifications across clients via the Value.Changed event.

    local position = Vector3Value.new("Position", Vector3.new(0, 0, 0))
    position.value = Vector3.new(5, 10, 5) -- Syncs to all clients
    print("Position: " .. tostring(position.value))
    

    Updated 19 days ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.