So I want my cutscene to only happen when the player spawn in, when I reset the cutscene plays again but its a lot more broken, your camera goes through the floor and glides on it, can you please make it so it will only happen when the player spawns in. Script:
local TweenService = game:GetService("TweenService")
local camera = game.Workspace.Camera
local cutsceneTime = 12
local tweenInfo = TweenInfo.new(
cutsceneTime,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
function tween(part1,part2)
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(0)
tween(game.Workspace.Test1,game.Workspace.Test2)

2 comments
You mean a one time spawn-in cutscene?
Yes.