This member can only be accessed by CoreScripts. Attempting to access this member outside of a CoreScript will cause an error.
This item is not replicated across Roblox’s server/client boundary.
This property can only be read from. Attempting to write to it will cause an error.
The VRDeviceName property indicates the name of a connected Virtual Reality (VR) device. You can use this property to check the name of a connected VR device.
To check if Roblox detects any VR devices, you can check the
VRService only runs client-side, this property will only work when used in a
This example checks if Roblox detects a VR device. If a VR device is detected, this prints the name of the device. If not, this example prints “No VR device detected!”.
local VRService = game:GetService("VRService") if (VRService.VREnabled) then print(VRService.VRDeviceName) else print("No VR device detected!") end