Been trying to make my Camera rotate to look at a part using tween but for some odd reason it doesn’t face the designated part.
Now when I use Camera:Interpolate() it works but this is said to be Depreciated.
Here is the code below anyway I can get this to rotate correctly to face the part is needs to face?
--Tween Animation For Camera--
Camera.CameraType = Enum.CameraType.Scriptable
local TweenInfoAnimation = TweenInfo.new(
1,
Enum.EasingStyle.Cubic,
Enum.EasingDirection.InOut,
0,--Reverses
false,
0--Delay
)
local TweenInfo1 = {
Focus = CFrame.new(workspace.Part1),
FieldOfView = 100
}
local Tween1 = TweenService:Create(Camera,TweenInfoAnimation,TweenInfo1)
Tween1:Play()