Im making a VR script for fun all i want to know is how do i get the right/left controller positions?
i made the hand's If you dont know do not respond to this question.
1 | local vr = game:GetService( "VRService" ) local hand 1 = Instance.new( "Part" ,workspace.Andrew_KnowsRBLX) local hand 2 = Instance.new( "Part" ,workspace.Andrew_KnowsRBLX) hand 1. Name = "Right Hand" hand 2. Name = "Left Hand" hand 1. Size = Vector 3. new( 2.849 , 5.359 , 2.614 ) hand 2. Size = Vector 3. new( 2.849 , 5.359 , 2.614 )) |
Use VRService:GetUserCFrame
01 | local VRService = game:GetService( "VRService" ) |
02 | local Character = workspace.Andrew_KnowsRBLX |
03 | local LeftHand = Instance.new( "Part" , Character) |
04 | local RightHand = Instance.new( "Part" , Character) |
05 | RightHand.Name = "Right Hand" |
06 | LeftHand.Name = "Left Hand" |
07 | RightHand.Size = Vector 3. new( 2.849 , 5.359 , 2.614 ) |
08 | LeftHand.Size = Vector 3. new( 2.849 , 5.359 , 2.614 ) |
09 | RightHand.CFrame = VRService:GetUserCFrame(Enum.UserCFrame.RightHand) |
10 | LeftHand.CFrame = VRService:GetUserCFrame(Enum.UserCFrame.LeftHand) |