Skip to content
Roblox API Reference

VRService

Service responsible for handling interactions between Roblox and Virtual Reality (VR).
  • Not creatable
  • Service
Memory category
Instances
Own members
30
Inherited members
75
Subclasses
0
Siblings
608

Properties40

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byVRService17

Property categoryBehavior

  • VRService.AutomaticScaling: Enum.VRScaling = Enum.VRScaling.World
    Automatically adjusts scaling in VR to align the player with their avatar.
    • Capabilities: Input
  • VRService.AvatarGestures: boolean = false
    When true, a VR player will be able to animate their hands and head using their controllers and headset.
    • Capabilities: Input
  • Controls whether and how the player's VR hand controllers are rendered in the experience.
    • Capabilities: Input
  • VRService.FadeOutViewOnCollision: boolean = true
    When true, a VR player's view will fade to black when their head collides with an object.
    • Read capabilities: Input
  • VRService.GuiInputUserCFrame: Enum.UserCFrame = Enum.UserCFrame.Head
    Describes what UserCFrame is responsible for input in VR.
    • Not replicated
    • Capabilities: Input
  • Controls whether and how the VR laser pointer used to interact with the user interface is displayed.
    • Capabilities: Input

Property categoryData

  • VRService.DidPointerHit: boolean = false
    • Hidden
    • Read only
    • Roblox script security
    • Read capabilities: Input
  • VRService.LaserDistance: number = 50
    • Hidden
    • Read only
    • Roblox script security
    • Read capabilities: Input
  • VRService.PointerHitCFrame: CFrame = CFrame.identity
    • Hidden
    • Read only
    • Roblox script security
    • Read capabilities: Input
    • Hidden
    • Read only
    • Roblox script security
    • Read capabilities: Input
  • VRService.QuestASWState: boolean = false
    • Hidden
    • Not replicated
    • Roblox script security
    • Read capabilities: Input
  • VRService.QuestDisplayRefreshRate: number = 0
    • Hidden
    • Not replicated
    • Roblox script security
    • Read capabilities: Input
  • VRService.ThirdPersonFollowCamEnabled: boolean = true
    Indicates whether the third-person follow camera is enabled for the VR user.
    • Read only
    • Capabilities: Input
  • VRService.VRDeviceAvailable: boolean = false
    • Hidden
    • Read only
    • Roblox script security
    • Read capabilities: Input
  • VRService.VRDeviceName: string = ""
    • Hidden
    • Read only
    • Roblox script security
    • Read capabilities: Input
  • VRService.VREnabled: boolean = false
    Describes whether the user is using a virtual reality device.
    • Read only
    • Capabilities: Input
    • Hidden
    • Read only
    • Roblox script security
    • Read capabilities: Input

Methods50

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byVRService8
  • VRService:GetTouchpadMode(pad: Enum.VRTouchpad): Enum.VRTouchpadMode
    Returns the VRTouchpadMode indicating the mode of a specified VRTouchpad.
    • Capabilities: Input
    Parameters
    ParameterDescription
    pad: Enum.VRTouchpad
    The specified VRTouchpad.
    Returns
    TypeDescription
    Enum.VRTouchpadMode
    The mode of the specified VRTouchpad.
  • VRService:GetUserCFrame(type: Enum.UserCFrame): CFrame
    Returns a CFrame describing the position & orientation of a specified virtual reality device as an offset from a point in real world space.
    • Capabilities: Input
    Parameters
    ParameterDescription
    type: Enum.UserCFrame
    The specified UserCFrame.
    Returns
    TypeDescription
    CFrame
    A CFrame describing the position and orientation of the specified VR device as an offset from a point in real-world space.
  • VRService:GetUserCFrameEnabled(type: Enum.UserCFrame): boolean
    Returns true if the specified UserCFrame is available to be listened to.
    • Capabilities: Input
    Parameters
    ParameterDescription
    type: Enum.UserCFrame
    The specified type of VR device.
    Returns
    TypeDescription
    boolean
    A boolean indicating whether the specified VR device is enabled (true) or disabled (false).
  • VRService:IsMaquettes(): boolean
    • Roblox script security
    • Capabilities: Input
    Returns
    Type
    boolean
  • VRService:IsVRAppBuild(): boolean
    • Roblox script security
    • Capabilities: Input
    Returns
    Type
    boolean
  • VRService:RecenterUserHeadCFrame()
    Re-centers the CFrame to the current location of the VR headset being worn by the user.
    • Capabilities: Input
  • VRService:RequestNavigation(cframe: CFrame, inputUserCFrame: Enum.UserCFrame)
    Requests navigation to the specified CFrame using the specified UserCFrame as the origin for the visualizer parabola.
    • Capabilities: Input
    Parameters
    ParameterDescription
    cframe: CFrame
    The specified CFrame coordinates.
    inputUserCFrame: Enum.UserCFrame
    The VR device for which the navigation is requested.
  • VRService:SetTouchpadMode(pad: Enum.VRTouchpad, mode: Enum.VRTouchpadMode)
    Sets the mode of the specified VRTouchpad to the specified VRTouchpadMode.
    • Capabilities: Input
    Parameters
    ParameterDescription
    pad: Enum.VRTouchpad
    The specified VRTouchpad you want to set the mode of.
    mode: Enum.VRTouchpadMode
    The mode you want to set the specified VRTouchpad to.

Events15

Inherited fromObject1
Inherited fromInstance9
Defined byVRService5