I’m attempting to play an animation for the frying pan and spatula, however, the CFrame is completely off when defining .Part0
and .Part1
. The handle originally uses 2 Motor6D
's from the animation (is already set inside the models).
To mess around and see if results differ, .C0
and .C1
give me different positions and orientations, but they’re still completely off - unsure if I used it right. What needs changing?
cb.Triggered:Connect(function(plr)
local char = plr.Character
local animator = Instance.new("Animator"); animator.Parent = plr.Character.Humanoid
local panClone = pan:Clone(); local spachlaClone = spachla:Clone()
panClone.Parent = char["Right Arm"]; spachlaClone.Parent = char["Left Arm"]
local m6dPan = Instance.new("Motor6D"); m6dPan.Part0 = char["Right Arm"]; m6dPan.Part1 = panClone.Handle
m6dPan.Parent = char["Right Arm"]
local m6dSpa = Instance.new("Motor6D"); m6dSpa.Part0 = char["Left Arm"]; m6dSpa.Part1 = spachlaClone.Handle
m6dSpa.Parent = char["Left Arm"]
local anim = animator:LoadAnimation(script.PattyAnim)
anim:Play()
end)
I’m not as familiar with configuring CFrames and animations, hence I’d appreciate the explanation of understanding what I’ve done wrong.