How do I make a VR Only Game?

Hello, I am trying to make a game that is only for VR, so Im just wondering how do I make so only people in VR Can play?
Also how do I make it so the player can pick up a Item?

Unsure on how to make a pickup item system, but I think there are some values with UserInputService you can look at that check for controllers and headsets.

Not 100% sure this is the case

Edit: Yup, there is a value if the user is on VR, (UserInputService) It is called VREnabled

Use this simple script,

local UIS = game:GetService("UserInputService")
local vrEnabled = UIS.VREnabled

game.Players.PlayerAdded:Connect(function(player)
      if not vrEnabled then
         player:Kick("You must be on VR to play this experience")
      end
end)

In order to create hands and pickup items follow this tutorial,

After creating the hands you can use the Touched event to detect if the hand touches an item, you can give the item a value and if the item has that value put it on the player’s hand.

1 Like


Sorry for necro, but roblox has added a new checkbox. You can use this to make the game VR exclusive.

1 Like

Roblox has added the ability to only allow the game for VR through the configure place tab of your game:

image

There is also a value to detect if a player is playing in VR (UserInputService.VREnabled)

2 Likes