TweenService ignoring object pivot point

I want to achieve animating an object using TweenService, but the problem is that I found out that TweenService ignores the pivot that I set and just uses the center of the object as a pivot when rotating. How do I make it recognize where it should pivot?

Here’s the script:

local TS = game:GetService("TweenService")
local Target = script.Parent.MainFlap
local Goal = {}
local TI = TweenInfo.new(1)
Goal.CFrame = Target.CFrame*CFrame.fromEulerAnglesXYZ(90,0,0)
local Tween = TS:Create(Target,TweenInfo.new(1),Goal):Play()