Camera moving though any parts with transparency

This works great but for me I was using the popper script for something else and it didn’t work.

I instead replaced the getTotalTransparency(part) > 0.25 on line 128 with getTotalTransparency(part) < 0 and it also worked.

How to mkae it work for cancollide parts?

This doesn’t work for me, the camera can still go through the transparent plastic


Sorry for the bump, but it underlines something in the script. It’s too long to spell out lol.

It says “unknown global (long name)”

Thanks.

Yeah, the script was updated quite a while ago, try this instead:

local function canOcclude(part)
	-- Occluders must be:
	-- 1. Opaque
	-- 2. Interactable
	-- 3. Not in the same assembly as the subject

	return
		getTotalTransparency(part) < 1 and
		part.CanCollide and
		subjectRoot ~= (part:GetRootPart() or part) and
		not part:IsA("TrussPart")
end

It’s not recommended to fork the PlayerModule, but honestly, I don’t see a better way.

1 Like

Why not? I’m just curios :face_with_monocle:

The script could be updated in the future, causing issues. I remember reading it, so I’m not exactly sure what the reasoning is.

1 Like

Does it have to use transparency? If not, I usually just make it 0 transparency and add a SpecialMesh
type 0 into the SpecialMesh’s MeshId
Don’t leave it blank, just type 0

1 Like