Restrict access to game?

Is there a way I could restrict a player from using my game without a VR headset connected?

1 Like

Maybe use this property, to display a UI saying ‘VR Set Required to play’

2 Likes

Put this in a local script in StarterPlayerScripts.

local player = game.Players.LocalPlayer
 local userInputService = game:GetService("UserInputService")
local isUsingVR = userInputService.VREnabled
 if (isUsingVR) then

 else
player:Kick()
 end
1 Like