Where is your cutscene script? I assumed it was parented to the TextButton.
If not, move your cutscene script so it’s parent is the TextButton. Here is the finished script:
local camera = game.Workspace.Camera
camera.CameraType = Enum.CameraType.Scriptable
local button = script.Parent
function tween(part1,part2,cutsceneTime)
local tweenInfo = TweenInfo.new(
cutsceneTime,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = part1.CFrame
local tween = TweenService:Create(camera, tweenInfo, {CFrame = part2.CFrame})
tween:Play()
wait(cutsceneTime)
end
button.MouseButton1Click:Connect(function()
tween(part1, part2, cutsceneTime)
end)
Please excuse if there are some syntax errors, I am not in Studio at this time.