1 | local tween = TweenService:Create(camera, TweenInfo { CFrame = CFrame.new(petClone.PrimaryPart.CFrame.lookVector * 5 ) + Vector 3. new( 0 , 0.75 , 0 )) ,petClone.PrimaryPart.Posistion. } ) |
Note that this is all 1 line and for some reason that is broken or maybe i'm not typing it right
Your code is full of typing errors.
1 | local tween = TweenService:Create(camera, TweenInfo.new( 2 ), { CFrame = CFrame.new((petClone.PrimaryPart.CFrame.LookVector * 5 ) + Vector 3. new( 0 , 0.75 , 0 ),petClone.PrimaryPart.Position } ) |