so im trying to animate a rig in a viewportframe, and im using a rig in the workspace to play the animations onto it, and trying to update the motor6ds c0 and c1 from the workspace rig to the viewportframe rig. this doesnt seem to be working, since it just doesnt look like (while the animations are playing onto the workspace rig), the motor6ds dont seem to change at all.
motor6d editing local script:
local AnimRig = game.Workspace.AnimRig
local Noob = script.Parent.Noob
local RunService = game:GetService("RunService")
RunService.RenderStepped:Connect(function()
for _, Motor6D in pairs(Noob:FindFirstChild("HumanoidRootPart"):GetChildren()) do
if Motor6D:IsA("Motor6D") then
for _,Child in pairs(AnimRig:FindFirstChild("HumanoidRootPart"):GetChildren()) do
if Child:IsA("Motor6D") and Child.Name == Motor6D.Name then
Motor6D.C0 = Child.C0
Motor6D.C1 = Child.C1
end
end
end
end
end)