(HELP) Camera not facing back of player when respawning

Hello! I’m trying to make the camera in my game always face the back of a player when respawning. I tried setting the camera mode to custom, but this only seemed to work when the player was facing forward when resetting. The character does always respawn facing forward though in the obby checkpoint.

Is there a way to script a custom camera mode? Thanks!

1 Like

Have a look at this link: Camera | Documentation - Roblox Creator Hub
It describes the CameraType Attach, which sounds like what you’re looking for.

1 Like

hey man i have absolutely 0 experience in this area but ill throw u an idea. i made a quick script for u. its not great but its along the lines.

put a remote event in replicated storage. script in serverscriptservice and local script in startercharacterscripts.

localscript:


local event = game.ReplicatedStorage.CameraEvent

event.OnClientEvent:Connect(function()
	local cam = workspace.CurrentCamera
	local c = game.Players.LocalPlayer.Character
	local Humanoid:Humanoid = c.Humanoid
	local HRP:MeshPart = c.HumanoidRootPart
	local cameraOFFSET = CFrame.new(0,2,10)
	cam.CameraType = Enum.CameraType.Scriptable

	cam.CFrame = HRP.CFrame * cameraOFFSET
	wait(.1)
	cam.CameraType = Enum.CameraType.Custom
	cam.CameraSubject = c.Head
end)

script:

local event = game.ReplicatedStorage.CameraEvent

game.Players.PlayerAdded:Connect(function(p)
	p.CharacterAppearanceLoaded:Connect(function(c)
		event:FireClient(p)
	end)
end)

image

1 Like