We will also return the hand, so we can store it and make changes to it later on. Now to create the hands, we will create a very simple function that will create a Part in the shape of a hand. StarterGui:SetCore("VREnableControllerModels", false) StarterGui:SetCore("VRLaserPointerMode", 0) Local starterGui = game:GetService("StarterGui") local player = game:GetService("Players").LocalPlayer We will also declare the StarterGui service, so we can remove the controller models and replace them with our own little hand models. We also declare the camera, so we can set the HeadSize and set the type to Scriptable. This allows us to use Player.Character without having to wait for it first which is quite ideal.Īt the top of the script we will declare the player and the character. Because we place it in StarterCharacterScripts, it will only start running once the character has loaded. Create a new Local Script in StarterPlayer → StarterCharacterScripts. To start off, we need to remove our player character. 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. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |