I have a script that doesn't work in online or Studio. I'm not sure if it'd make any sense posting it here considering it's just jumbled code with failed camera manipulations. If anyone wants to take a crack at it, thanks. Now, in DOOM 3, when you die, your camera tilts 30 degrees to the right, and your screen fades to black.

Code is below:

local player = game.Players.LocalPlayer

player.Character:WaitForChild("Humanoid").Died:connect(function()
	local deathscreen = game.Workspace.Camera
	function tweenCam(c1,f1,step,FOV,Roll)
	local c0,f0,fv0,r0 = c.CoordinateFrame,c.Focus,c.FieldOfView,c:GetRoll()
	for i = 30,30,step do
		local r = ((math.sin(math.rad(i))+1)/2)
		c.CoordinateFrame = CFrame.new(c0.p:lerp(c1.p,r))
		c.Focus = CFrame.new(f0.p:lerp(f1.p,r))
		c.FieldOfView = (Vector3.new(fv0,0,0):Lerp(Vector3.new(FOV,0,0),r).X)
		c:SetRoll(Vector3.new(r0,0,0):Lerp(Vector3.new(Roll,0,0),r).X)
		c.CoordinateFrame = CFrame.new(c.CoordinateFrame.p,c.Focus.p) -- This is used to force it to look at the focus.
		wait()
	end
end
end)

3 comments

0

Script? Its long use a pastebin.

0

Alright. I'll post the code.

0

Code is posted.