PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

UserCFrameChanged

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 /LocalScript.

Parameters

Name Type Default Description

The type of VR device that changed.

The updated CFrame coordinates of the VR device after the change.


Code Samples


VRService.UserCFrameChanged

​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.