Viewportframe rig animating

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)

idk if things like motor6ds will update in viewports

try animating the rig in workspace, and then copying the CFrames of the body parts to the rig in the viewport

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.