what if I removed the motors - then applied the networkownership to base parts and got the local to render the cframe to vr service? would the base parts be recognised?
NOTE
I DON’T want to use Align Instances to each hand the physics applied aren’t even smooth upon replication.
Server
local module = {}
function module:SetNetworkOwnership(player, character)
-- //for loop
for _, Motor6D in ipairs(character:GetDescendants()) do
if Motor6D:IsA("Motor6D") and Motor6D.Name ~= "RootJoint" and Motor6D.Name ~= "Left Hip" and Motor6D.Name ~= "Right Hip" then
Motor6D:Destroy()
local BasePart = Motor6D.Part1
BasePart:SetNetworkOwnership(player)
end
end
end
return module
Client
-- //Services
local VRService = game:GetService("VRService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Camera = workspace.CurrentCamera
-- //Folders
local RemoteEvents = ReplicatedStorage:FindFirstChild("RemoteEvents")
-- //Remotes
local VRServiceEvent = RemoteEvents:FindFirstChild("VRService")
-- //Character
local character = script.Parent.Parent
-- //Player
local player = Players:GetPlayerFromCharacter(character)
-- //Humanoid
local Humanoid = character:FindFirstChild("Humanoid")
-- //Character BaseParts
local Head = character:FindFirstChild("Head")
local RightArm = character:FindFirstChild("Right Arm")
local LeftArm = character:FindFirstChild("Left Arm")
function UserCFrame()
-- //VRService CFrames
local HeadVR = VRService:GetUserCFrame(Enum.UserCFrame.Head)
local RightVR = VRService:GetUserCFrame(Enum.UserCFrame.RightHand)
local LeftVR = VRService:GetUserCFrame(Enum.UserCFrame.LeftHand)
Head.CFrame = Camera.CFrame * HeadVR
RightArm.CFrame = Camera.CFrame * RightVR:ToWorldSpace(CFrame.Angles(math.rad(90), 0, 0))
LeftArm.CFrame = Camera.CFrame * LeftVR:ToWorldSpace(CFrame.Angles(math.rad(90), 0, 0))
end
RunService.RenderStepped:Connect(UserCFrame)
now would this work? if not thas fine.