Im trying to make a cutscene for entering my game, and im trying to make it tween from one part to another part, to another part, smoothly.
But how it goes right now is it will Tween from Part1 to Part2, then it will stay at Part2 for like 1 second then Tween to Part 3.
But what i want it to do is tween from Part1 to Part2 without stoping to go to Part3. Like it goes through all the parts without it stoping.
Code:
local cam = workspace.CurrentCamera
local TweenService = game:GetService(“TweenService”)
local cutsceneTime = 5
local tweenInfo = TweenInfo.new(
cutsceneTime,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
function tween(part1,part7,cutsceneTime)
local tweenInfo = TweenInfo.new(
cutsceneTime,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
cam.CameraType = Enum.CameraType.Scriptable
cam.CFrame = part1.CFrame
local tween = TweenService:Create(cam, tweenInfo, {CFrame = part7.CFrame})
tween:Play()
end
tween(game.Workspace.FocusPart1,game.Workspace.FocusPart9,5)