Resetting a Cutscene

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I wanted a textbutton that can cancel a cutscene and instantly skip back to viewing a part named “MenuPart” in workspace.

  2. What is the issue? Currently I’ve scripted a cutscene on client that runs 5 second after script loaded, and I’m using TweenService to tween the cutscene.

However, I wanted when a textbutton is clicked the cutscene will stop and the player will view the part mentioned above without the camera continue tweening.

  1. What solutions have you tried so far? I’ve tried making the player die so the camera can reset, or disabling the scripts, however, no matter what method I used, the tweening still continues
1 Like
local Player = game.Players.LocalPlayer
local Character = Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")

Humanoid.Died:Connect(function()
	-- Tween:Stop() or Camere.CameraType = Enum.CameraType.Custom
end)

If I change the camera type, it won’t give a reaction as it will just go back to the tween

1 Like

Changing camera type will reset the camera into Player.Character.Head.

Might be the tween is still playing when you want to reset the Camera.CameraType.

You will have to cancel the tween.

local lastTween
local function start()
    if lastTween then lastTween:Cancel() end
    local tween = TweenService:Create(...):Play()
    tween:Play()
    lastTween = tween
end
1 Like