The issue is when reverting the current camera from CameraType.Scriptable to CameraType.Custom, first person accessories don’t get removed (See Example 2)
Since your CameraType is custom, the normal first person changes don’t apply. You’ll have to make accessories invisible yourself
local Cam = game.Workspace.CurrentCamera
Cam.CameraType = Enum.CameraType.Scriptable
local cameraBlock = workspace.CameraPointAt
local cameraPos = workspace.CameraPosition
local postition = cameraPos.Position
local lookAt = cameraBlock.Position
Cam.CFrame = CFrame.new(postition,lookAt)
... --More code here
Cam.CameraType = Enum.CameraType.Custom
-- Loop through accessories
for _, object in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
if object:IsA("Accessory") and object:FindFirstChild("Handle") then
object.Transparency = 1
end
end
Cam.CameraSubject = game.Players.LocalPlayer.Character.Head
You’ll probably also want to make the body parts invisible
Thanks for the reply, the code works, but in 3rd person your character is still invisible. I was looking to revert the camera function to the roblox default. Thank you though, sorry if I was not clear.