VR hands wont work at all

so im very new to the VR side of roblox, and ive looked at dev forum post and youtube tutorials and stuff and not alot of things cover VR that are mostly recent.

i have no clue what to do or how to fix it since im not fimilar with any of this.

heres my script that is located in SCS

local vrService = game:GetService("VRService")
local runService = game:GetService("RunService")

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local cam = game.Workspace.CurrentCamera

local leftHand = char:WaitForChild("LeftHand")
local righthand = char:WaitForChild("RightHand")

runService.RenderStepped:Connect(function(dl)
	cam.CFrame = CFrame.new(char.HumanoidRootPart.Position) + Vector3.new(0,5,0)
	
	local leftHandTrack = vrService:GetUserCFrame(Enum.UserCFrame.LeftHand)
	local rightHandTrack = vrService:GetUserCFrame(Enum.UserCFrame.RightHand)
	
	char.HumanoidRootPart.LHandAtt.WorldCFrame = cam.CFrame * leftHandTrack
	char.HumanoidRootPart.RHandAtt.WorldCFrame = cam.CFrame * rightHandTrack
end)
1 Like