Replicated CFrame not correct?

Hi there, I’m currently working with VR. I’m fairly new to VRService so I don’t know if I’m using it correctly. Anyways, I made hands. But for some reason the server isn’t liking it. It glitches ALOT and I cant seem to fix it. On the server I create the character and set the network owner to the client/player. I then set its CFrame to the users CFrame. Here is a CLIP of what’s happening. On the left is me the VR player and to the right is the server. For some reason the entire player starts to drop downwards till it deletes the mode on the server. Please help me if you can, thanks!

Local Script [SNIPPET]

	game:GetService("RunService").RenderStepped:Connect(function()
		--// Head \\--
		local headCFrame = userInputService:GetUserCFrame(Enum.UserCFrame.Head)
		headCFrame = clientCamera.CFrame * CFrame.new(headCFrame.Position * (clientCamera.HeadScale - 1)) * headCFrame
		vrCharacter["Head"].CFrame = headCFrame
		--// Right Hand \\--
		local rightHandCFrame = userInputService:GetUserCFrame(Enum.UserCFrame.RightHand)
		rightHandCFrame = clientCamera.CFrame * CFrame.new(rightHandCFrame.Position * (clientCamera.HeadScale - 1)) * rightHandCFrame
		vrCharacter["RightHand"].CFrame = rightHandCFrame
		--// Left Hand \\--
		local leftHandCFrame = userInputService:GetUserCFrame(Enum.UserCFrame.LeftHand)
		leftHandCFrame = clientCamera.CFrame * CFrame.new(leftHandCFrame.Position * (clientCamera.HeadScale - 1)) * leftHandCFrame
		vrCharacter["LeftHand"].CFrame = leftHandCFrame
	end)

Server Script [SNIPPET]

	local vrCharacterModel = game:GetService("ReplicatedStorage")["vrModel"]:Clone()
	vrCharacterModel.Parent = game:GetService("Workspace")
	--// Set Physics to Client \\--
	for _, part in ipairs(vrCharacterModel:GetDescendants()) do
		if (part:IsA("BasePart") or part:IsA("Part") and part.Anchored == false) then
			part:SetNetworkOwner(client)
			part:CanSetNetworkOwnership(false)
		end
	end
2 Likes