Hi everyone!
I have an issue where I am trying to tween my camera to view a part. However, the tween resets whenever I use :Pause(). I want to stop it where it is, however it just stops tweening completely instead of pausing. I tried replacing it with cancel to see the difference and it did the same thing as :Pause(). How can I pause the camera mid-tween?
local TweenService = game:GetService("TweenService")
local camera = game.Workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
game.ReplicatedStorage.sci.OnClientEvent:connect(function(part)
local endcframe = {
CFrame = CFrame.new(Vector3.new(part.Position.X,part.Position.Y,part.Position.Z + 1), part.Position)
}
local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out,0,true)
local tween = TweenService:Create(camera, tweenInfo, endcframe)
tween:Play()
wait(2)
tween:Pause()
end)