marshp_n
(marshpin)
June 15, 2022, 10:59pm
#1
Hi, I’ve been wanting to make a VR Sword Fighting game on ROBLOX for awhile now, but I can’t seem to find any guides for scripting in VR and I honestly don’t even know where to get started with the movement and tracking. I already have VR equipment that can run VR games on ROBLOX such as Edgeworks and VR Hands (HP Reverb G2). Does anyone have any information/guides that could help? It would be greatly appreciated. Thank you!
2 Likes
zblox164
(zblox)
June 15, 2022, 11:10pm
#2
I am not big with VR either, however these resources should get you started.
As we all know, Roblox has a Virtual Reality system that can be used in order to read Virtual Reality input, and make Virtual Reality games. There is sadly not a lot of information out there on how to make a VR game, so I decided to make a very simple tutorial on creating VR hands from scratch.
To start off, we need to remove our player character. We will replace it with 2 VR hands. Create a new Local Script in StarterPlayer → StarterCharacterScripts. Because we place it in StarterCharacterScri…
This is my second tutorial in my series of VR tutorials. If you have not yet setup your VR hands, please follow my first tutorial of the series here .
In this tutorial we will add teleporation movement to our hands. Why teleportation? Teleportation is by far the most comfortable form of travel in VR. A lot of people get very sick of normal movement and teleportation is a lot more comfortable for them.
To start off, let’s take a look at the VR controllers. There are 3 very common VR headsets, a…
https://developer.roblox.com/en-us/api-reference/class/VRService
If you don’t want to create you’re own VR framework, use the module @uwuCulturist suggested.
1 Like
There’s a public vr module you can probably combine with normal part touched events to check when the sword makes contact with something
Roblox Loader (consider supporting):
GitHub:
Nexus VR Character Model is an open-source VR system for allowing players to play as their Roblox character in first-person. Included are both teleporting and smooth locomotion, first and third-person views, and support for physics, seats, and vehicles.
For integrating to make VR easier to work with, Nexus VR Core is included. The setup steps can be ignored since it loads everything.
Video Demos
[Nexus VR Character Model V2 Demo - V2…
I have a vr headset but I have not practiced with vr controls