How would I use Touched event For VR?

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)
2 Likes

You can use BodyPositions and BodyGyros, they work pretty nicely for what you’re asking.

1 Like

The BodyGyros and BodyPositions are a really big Help but now I’m having trouble on how its positioning it self from the Users VR CFrame

1 Like