I don’t think you are fully understanding my problem.
I have frames of an animation that I need to rotate relative to a point. Here’s an example of a frame:
[workspace.Default.Torso["Right Shoulder"]] = {
[1] = {
["Position"] = CFrame.new(0.165085912, -0.0724334791, -1.49011612e-07, -0.173648477, -0.981060266, -0.085831672, 0.98480767, -0.172987685, -0.0151344594, 7.4505806e-09, -0.0871556997, 0.99619472),
["EasingStyle"] = Enum.EasingStyle.Cubic,
["EasingDirection"] = Enum.EasingDirection.InOut,
["TimeToReach"] = 0
},
[2] = {
["Position"] = CFrame.new(0.165095836, -0.0724296495, 2.68220901e-07, -0.0514078997, -0.994182825, -0.094612956, 0.991161227, -0.0391954593, -0.126685202, 0.122241072, -0.100284696, 0.987418592),
["EasingStyle"] = Enum.EasingStyle.Cubic,
["EasingDirection"] = Enum.EasingDirection.InOut,
["TimeToReach"] = 1.75
},
[3] = {
["Position"] = CFrame.new(0.165085912, -0.0724334791, -1.49011612e-07, -0.173648477, -0.981060266, -0.085831672, 0.98480767, -0.172987685, -0.0151344594, 7.4505806e-09, -0.0871556997, 0.99619472),
["EasingStyle"] = Enum.EasingStyle.Cubic,
["EasingDirection"] = Enum.EasingDirection.InOut,
["TimeToReach"] = 1.83
},
},
I need to modify the Position of that (which is c0). Heres the code which sets the C0 (Frame is the frame number. DefaultC is the default C0 before the animation start.s):
local TweenInfoF = TweenInfo.new(Frame.TimeToReach, Frame.EasingStyle, Frame.EasingDirection)
local Tween = TweenService:Create(i, TweenInfoF, {C0 = DefaultC * Frame.Position})
Tween:Play()
task.wait(Frame.TimeToReach)