What do you want to achieve?
When you load in, it plays a cutscene.
What is the issue? Include screenshots / videos if possible!
The cutscene goes to the first blocks (the first line at the bottom) and then doesn’t do the 2nd line at the bottom
local TweenService = game:GetService("TweenService")
local camera = game.Workspace.Camera
local cutsceneTime = 3
local tweenInfo = TweenInfo.new(
cutsceneTime,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
function tween(part1,part2,cutsceneTime)
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = part1.CFrame
local tween = TweenService:Create(camera, tweenInfo, {CFrame = part2.CFrame})
tween:Play()
wait(cutsceneTime)
camera.CameraType = Enum.CameraType.Custom
end
wait(2)
tween(game.Workspace.Test1,game.Workspace.Test2)
tween(game.Workspace.Test2,game.Workspace.Test3)
If you want to make it work when a player joined well add
repeat wait() until game.Players.LocalPlayer.Character
also add a localscript inside the replicatedfirst and put your code and the code above this message it SHOULD work and i cant understand what do you mean its jumpy and pauses then starts moving
No. Stop sharing bad practice. You don’t need to do that. Especially because he’s tweening the camera, not the player’s character.
@UniqueGamingReed, that might be happening because of the EasingStyle of the TweenInfo. You can change to something else and see the result. The DevHub has an little recording of how each EasingStyles and EasingDirections work with eachother, here is the page that shows it: