How to disable camera collision when seated?

  1. What do you want to achieve? I want to disable camera collision of parts when seated

  2. What is the issue? I have a plane and im using the cm32 plane kit, when i sit on the pilot seat the camera mode switches to attach. But, i have a problem there are parts on the way of the camera. I have tried to disable collision on the parts and it worked. But i want the parts to be still cancollide true for the passengers.

Here is a video:

robloxapp-20221015-2134332.wmv (3.3 MB)

Server Script in StarterCharacterScripts

local Character = script.Parent
local Player = game.Players:GetPlayerFromCharacter(Character)
local Humanoid = Character:WaitForChild("Humanoid")

Humanoid:GetPropertyChangedSignal("Sit"):Connect(function()
	if Humanoid.Sit == true then 
		Player.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Invisicam 
	else 
		Player.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Zoom 
	end
end)

Is there any way to do it for only this one seat?

Because it will be for all the other passenger seats too

Change SeatName to whatever your seat is named

local SeatName = "CoolSeat"

local Character = script.Parent
local Player = game.Players:GetPlayerFromCharacter(Character)
local Humanoid = Character:WaitForChild("Humanoid")

Humanoid:GetPropertyChangedSignal("Sit"):Connect(function()
	if Humanoid.Sit == true and Humanoid.SeatPart.Name == SeatName then 
		Player.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Invisicam 
	else 
		Player.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Zoom 
	end
end)

I’am somehow experiencing a bug where i cannot zoom in or zoom out

And any way to make the parts still be fully visible?

That seems like a plane kit problem, sorry.