The error is 14:57:57.602 CFame is not a valid member of Part "Workspace.PartB" - Client - LocalScript:8
My script is
wait(3) local TweenServise = game:GetService("TweenService") local Camera = game.Workspace.CurrentCamera
local function MoveCamera(StartPart, EndPart, Duration, EasingStyle, EasingDirection) Camera.CameraType = Enum.CameraType.Scriptable Camera.CFrame = StartPart.CFrame local Cutscene = TweenServise:Create(Camera, TweenInfo.new(Duration, EasingStyle, EasingDirection), {CFrame = EndPart.CFame}) Cutscene:Play() wait(Duration) end
local function Cutscene() MoveCamera(game.Workspace.PartA, game.Workspace.PartB, 1.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out)
wait(.5)
Camera.CameraType = Enum.CameraType.Custom
Camera.CameraSubject = game.Players.LocalPlayer.Character:WaitForChild("Humaniod")
end
Cutscene()
It highlights the spot that says local Cutscene = TweenServise:Create(Camera, TweenInfo.new(Duration, EasingStyle, EasingDirection), {CFrame = EndPart.CFame})

1 comment
"EndPart.CFame" change the "CFame" to "CFrame