Is there a way I could restrict a player from using my game without a VR headset connected?
1 Like
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