How would I accurately mimic a pose on one character to another other using CFrame?

I know that when an animation is playing it changes the CFrame of your limbs, but the hard part is transferring that data to another characters object space/local space

its a bad drawing but, basically copy a pose onto another character relative to tha character using the other characters cframe data

1 Like

Why not just actually play the same animation as the other character?

Im trying to challenge myself to understand local space/object space an world space better

So you want your entire body to mimic the animation of another character, right (with code)?

Yeah like say I have a pose where the players arm is up in the air, i want the other players arm to be up in the air too but keep its position relative

1 Like

Loop through the other character, if the item is a part and is found inside your character make them same with :ToObjectSpace()

Could you give an example? Also what do i pass through the ToObjectSpace function?

Well you can do this by modifying the character’s Motor6D, which has a property called .Transform.

Here’s an example of my setup:

local RNS = game:GetService("RunService")
local PS = game:GetService("Players")

local player = PS.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local torso = char:WaitForChild("Torso")
local mimic = workspace:WaitForChild("Mimic")


RNS.Stepped:Connect(function()
	if char then
		for _,v: Motor6D in ipairs(mimic:GetDescendants()) do
			if v:IsA("Motor6D") then
				local motor = char:FindFirstChild(v.Name, true)
				
				motor.Transform = v.Transform
			end
		end
	end
end)

1 Like

Im so confused .Transform property?

1 Like

thats so cool, THANKS so much DUDE

1 Like