How would I move a part to the left or right of the player's camera?

As the title says, how would I move a part to the left or right of where the player is looking at?

You can use Camera.CFrame * CFrame.new( -1 (for left) or 1 (for right),0,0)

This will give the frame you need to set on a part.

local camera = workspace.CurrentCamera
task.wait(5)
local part = Instance.new("Part")
part.Parent = workspace
part.Anchored = true
part.CFrame = camera.CFrame

This doesn’t really work. I want to tween the part by a specific amount toward either direction(left or right). This is what happens in game. Roblox 2021-11-28 21-03-38
It’s moving outside of the camera.

This would only set the part CFrame to the camera CFrame but I want to tween the part left or right of the camera.

Right, I was just providing a bit of sample code to get you started.

local camera = workspace.CurrentCamera
local ts = game:GetService("TweenService")
task.wait(5)
local part = Instance.new("Part")
part.Parent = workspace
part.Anchored = true
local tween = ts:Create(part, TweenInfo.new(3), {["CFrame"] = camera.CFrame})
tween:Play()

Now I know you want tweens I can add this.

--MOVE PART TO LEFT
local camera = workspace.CurrentCamera
local ts = game:GetService("TweenService")
task.wait(5)
local part = Instance.new("Part")
part.Parent = workspace
part.Anchored = true
part.CanCollide = false
local tween = ts:Create(part, TweenInfo.new(3), {["CFrame"] = camera.CFrame * CFrame.new(-10, 1, -10)})
tween:Play()
--MOVE PART TO RIGHT
local camera = workspace.CurrentCamera
local ts = game:GetService("TweenService")
task.wait(5)
local part = Instance.new("Part")
part.Parent = workspace
part.Anchored = true
part.CanCollide = false
local tween = ts:Create(part, TweenInfo.new(3), {["CFrame"] = camera.CFrame * CFrame.new(10, 1, -10)})
tween:Play()