What do you want to achieve? I want to make my tween work.
What is the issue? The tween is not working, I don’t know how to describe it well so here is some pictures:
Wrong way:
The way I want it to be:
What solutions have you tried so far? I’ve tried doing a another position again, it still did the same thing.
local cop_fpos = CFrame.new(33.601, 3.099, -28.629)
local cop = workspace:WaitForChild("COP")
-- But then when it gets to the part then stuff happens..
local t2 = ts:Create(cop,TweenInfo.new(1),{CFrame = cop_fpos})
t2:Play()
If you’re just tweening position, why not just use a Vector3 instead of CFraming it? I don’t know what the problem exactly is, but if the rotation is the problem, then only tween the position.
local cop_fpos = Vector3.new(33.601, 3.099, -28.629)
local cop = workspace:WaitForChild("COP")
-- But then when it gets to the part then stuff happens..
local t2 = ts:Create(cop,TweenInfo.new(1),{Position = cop_fpos})
t2:Play()
You will need to get the CFrame orientation of that part, and multiply its goal CFrame by it. So do something like this:
local Cop = workspace:WaitForChild("COP")
local CopCFrameOrientation = Cop.CFrame - Cop.CFrame.Position
local GoalPosition = CFrame.new(33.601, 3.099, -28.629)
local t2 = ts:Create(Cop, TweenInfo.new(1), {CFrame = GoalPosition * CopCFrameOrientation})
t2:Play()
EDIT: The reason I stick to CFrames and dont use position, is because setting the position can sometimes lead to parts appearing above other parts. I dont know if this happens with tweening, but using CFrames is a safe way to play it.