Hello, Im new to using the VRService and I made a script that teleports an anchored parts CFrame to the VR players UserCFrame and when I’m trying to do touch events to detect the players hand the Hand would move inside the part and not count it as a touch.
Is there any alternatives that I could use?
local script:
if VRService.VREnabled == true then
VRService.UserCFrameChanged:Connect(function()
local rightHand = VRService:GetUserCFrame(Enum.UserCFrame.RightHand)
local leftHand = VRService:GetUserCFrame(Enum.UserCFrame.LeftHand)
vrExport:FireServer(game.Workspace.Camera.CFrame,rightHand,leftHand)
end)
end
server script:
local vr = game.ReplicatedStorage.VRMovements
vr.OnServerEvent:Connect(function(player,Camera,RightHand,LeftHand)
local Rhand = game.Workspace.Player.RightBase
Rhand.CFrame = Camera*(RightHand)
local Lhand = game.Workspace.Player.LeftHand
Lhand.CFrame = Camera*(LeftHand)
end)