Hello so I’m making a VR game and I have the head and hands working but the hands are tilted weirdly even when I have the controllers completely upright. This is what I mean
This is with my controllers completely straight.
Here is my code that handles the hands:
local player = game:GetService("Players").LocalPlayer
local character = workspace.VRBody
local camera = game.Workspace.CurrentCamera
local starterGui = game:GetService("StarterGui")
character.HumanoidRootPart.Anchored = true
workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position)
camera.CameraType = "Scriptable"
camera.HeadScale = 1
starterGui:SetCore("VRLaserPointerMode", 0)
starterGui:SetCore("VREnableControllerModels", false)
local leftHand = workspace.VRBody.LeftHand
local rightHand = workspace.VRBody.RightHand
local inputService = game:GetService("UserInputService")
inputService.UserCFrameChanged:Connect(function(part, move)
if part == Enum.UserCFrame.LeftHand then
leftHand.CFrame = camera.CFrame * move
elseif part == Enum.UserCFrame.RightHand then
rightHand.CFrame = camera.CFrame * move
end
end)
Thanks for the help and sorry for the trouble.