Learn
Engine Class
CFrameValue

Summary
Properties
Inherited Members
Code Samples
Store the Camera's CFrame
-- Create a CFrame that stores the camera's current position/orientation
local vSnapshot = Instance.new("CFrameValue")
vSnapshot.Value = workspace.CurrentCamera.CFrame
vSnapshot.Name = "Snapshot"
vSnapshot.Parent = workspace
-- Later, we can load the CFrame back into the camera
workspace.CurrentCamera.CFrame = vSnapshot.Value

API Reference
Properties
Value
Read Parallel
Simulation Access
CFrameValue.Value:CFrame

Events
Changed
CFrameValue.Changed(value:CFrame):RBXScriptSignal
Parameters
value:CFrame
Code Samples
CFrameValue.Changed
local cframeValue = script.Parent.CFrameValue
cframeValue.Changed:Connect(print)
cframeValue.Value = CFrame.new(1, 2, 3)

changed
Deprecated

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.