The UserCFrameChanged even fires when a
Enum/UserCFrame is changed. For instance, this event fires when the user moves a connected VR device.
This can be used alongside
VRService\GetUserCFrame to track the
DataType/CFrame coordinates of a VR devices, and when it changes/moves. It can also be used alongside
/UserInputService service events and functions.
Since the event fires locally, it can only be used in a
The type of VR device that changed.
The updated CFrame coordinates of the VR device after the change.
This event fires when the user moves a connected VR device. When the event fires, this prints the name of the VR device type that changed, and the updated CFrame coordinates.
local VRService = game:GetService("VRService") VRService.UserCFrameChanged(function(type, value) print(type.Name + " changed. Updated Frame: " + value) end