Glorpia Docs
Instances / ValueBase

CFrameValue

Stores a position and rotation.

Inheritance

CFrameValue is a ValueBase class and inherits the shared hierarchy API from Instance.

Members

NameTypeDescription
ValueCFrameThe value stored by this instance.
ChangedsignalFires when Value changes and passes the new value.

Example

Luau
local value = Instance.new("CFrameValue")
value.Name = "ExampleValue"
value.Value = CFrame.new(0, 5, 0)
value.Parent = workspace

value.Changed:Connect(function(newValue)
    print(newValue)
end)

Related