#Death cutscene not working in the way intended to...

1 messages · Page 1 of 1 (latest)

torpid solstice
#

Hello I seem to have an issue with this death cutscene script

function onPlayerDied()
    camera.CameraType = Enum.CameraType.Scriptable
    camera.CFrame = part.CFrame
    sound:Play()
    wait(4)
    sound:Play()
    camera.CameraSubject = script.Parent.Humanoid
    repeat wait()
        camera.CameraType = Enum.CameraType.Custom
    until camera.CameraType == Enum.CameraType.Custom
end

script.Parent.Humanoid.Died:Connect(onPlayerDied)
It does change the camera, but it doesnt change it back, also when the sound is played it cuts off and only plays half of it, anyway to fix this?