AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Vr hands roblox4/13/2024 We’re going to do this in the UserCFrameChanged function. In order to move the hands, we should get the position of the controllers. We now create two hands and store a reference to them. And we parent it to the character so that other players can see it, and we have access over it via the Local Script. This really has no purpose other then to not get a stack of 2 hands at the root of the world if one of the hands doesn’t work. We also set it’s position to the position of our character. 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
Read More
Leave a Reply. |