Roblox (a while ago) changed how the camera interacts with transparent parts. I was wondering how to make it so if a player touches their camera to a transparent brick, it does collide rather than not.
I think the word you’re looking for is PopperCam
. It is a module found during runtime. Overwrite the module and add the copied scripts to the StarterPlayerScripts
.
3 Likes
Found the module, but how do I override it?
You just rewrite it, as previously mentioned. I don’t remember exactly which part, but you have to write some logic about if the camera is hitting a transparent part and allow the camera through it.
3 Likes
I found a different module called Popper under the ZoomController module which contains the following code:
local function canOcclude(part)
-- Occluders must be:
-- 1. Opaque
-- 2. Interactable
-- 3. Not in the same assembly as the subject
if FFlagUserPoppercamLooseOpacityThreshold then
return
part.Transparency < 0.25 and
part.CanCollide and
subjectRoot ~= (part:GetRootPart() or part) and
not part:IsA('TrussPart')
else
return
part.Transparency < 0.95 and
part.CanCollide and
subjectRoot ~= (part:GetRootPart() or part)
end
end
Thank you for helping me.
7 Likes
https://www.roblox.com/library/4178002376/FIX-Camera-Transparency-above-0-2
If you want to change it edit Popper
4 Likes