Whenever a camera is tweening and I just die in the midst of it tweening. The camera is stuck there forever
I already tried destroying the camera script after it ends. What happens is that the camera is just stuck there but I want it to return back to normal.
If you are asking for the camera script, I used Alvin blox tweening camera script(No changes except that I made it tween three times to three different parts)
Uh, sorry. I don’t watch AlvinBlox, so I don’t know what script you’re referring too. Please reply with the script, and I’ll read over it. I may know what the issue is.
local TweenService = game:GetService("TweenService")
local camera = game.Workspace.Camera
local cutsceneTime = 3.5
local tweenInfo = TweenInfo.new(
cutsceneTime,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
function tween(part1,part2,part3,part4)
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
db = true
end
wait(2)
if db then
db = false
tween(game.Workspace.focuspart, game.Workspace.focuspart2)
tween(game.Workspace.focuspart2, game.Workspace.focuspart3)
tween(game.Workspace.focuspart3, game.Workspace.focuspart4)
end```