I need help with modifying a CFrame to move it back by a specific position.
I attempted to do this by creating a new CFrame with the CFrame of a players head and multiplying it by a Vector 3, then setting the combination of both CFrames in the Property table.
Instead, it just returns an error saying that a Vector3 is expected? Error location happens at the PTable variable.
Ive tried looking around, but solutions I’ve tried are too far or not related to my problem.
Sorry if this is a dumb question, I appreciate any help!
local TS = game:GetService("TweenService")
TSinfo = TweenInfo.new(1.5, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, false, 0)
Head = plr.Character:WaitForChild("Head").CFrame
Modifier = Vector3.new(0, 0, -5)
Final = CFrame.new(Head * Modifier)
PTable = {CFrame = CFrame.new(Final)}
--//-----------------//--
local Tween = TS:Create(camera, TSinfo, PTable)
Tween:Play()
wait(1.5)