Camera doesn't wanna set back to original character

After an Animation is done it’ll reset your camera position back

When I try playing on a mobile emulator on ROBLOX Studio, It won’t change back to the original character position.

I’ve tried CameraTypes and CameraSubject

--[{Sorry For The Messy Code.}]

local Info2 = TweenInfo.new(0.4)

local player = game.Players.LocalPlayer

local WhiteBorder = game.Players.LocalPlayer.PlayerGui:WaitForChild("WhiteBorder")

local TweenRight = game:GetService("TweenService"):Create(WhiteBorder.Right,Info2,{Size=UDim2.new(0.5, 0, 1, 0)})

local TweenLeft = game:GetService("TweenService"):Create(WhiteBorder.Left,Info2,{Size=UDim2.new(0.5, 0, 1, 0)})

local TweenRightOpen = game:GetService("TweenService"):Create(WhiteBorder.Right,Info2,{Size=UDim2.new(0, 0, 1, 0)})

local TweenLeftOpen = game:GetService("TweenService"):Create(WhiteBorder.Left,Info2,{Size=UDim2.new(0, 0, 1, 0)})

local Coltennz = game.Workspace.Coltennz

local CameraInChar = game.ReplicatedStorage:WaitForChild("CameraInChar1")

local Humanoid = Coltennz.Humanoid

local Animation = script.Animation

local AnimationLoad = Humanoid:LoadAnimation(Animation)

local camera = workspace.CurrentCamera

script.Parent.MouseButton1Down:Connect(function()
	CameraInChar = true
	AnimationLoad:Play()
	wait(3)
	TweenRight:Play()
	TweenLeft:Play()
	game.Workspace.CurrentCamera.CameraType = "Custom"
	game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
	CameraInChar = false
	wait(4.1)
	TweenLeftOpen:Play()
	TweenRightOpen:Play()
end)

Replace “Custom” with ‘Enum.CameraType.Custom’

I’m not sure, it doesn’t seem to work for some reason

Try commenting out that line then

You need to set the CameraSubject back to the character’s Humanoid.

game.Workspace.CurrentCamera.CameraSubject = Humanoid