Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you prevent a part from obscuring the camera?

Are there any ways to do this in Lua? I have a non-transparent part and I don't want it to be allowed to block the camera. I know you can write your own camera script like invisicam, but I was wondering if there was a way to do this with the default camera.

EDIT: To clarify, I mean that I don't want the camera to 'jump back' in position if this part passes in between the character and the camera.

1 comment

0

Not positive, maybe setting the part to cancollide false?

4 answers

Hmm. Make the part transparent, trust me on this and then get a big block, take a picture of it, make it a decal, put the decal on the transparent block and bam!

Yes, there is. Set the CameraSubject to the Torso (instead of the default Humanoid) - an example is shown below (localscript)

workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Torso

1 comment

0

I think he means he wants a specific part from not obscuring the camera, not all parts.

Choice 1: Transparency = 0.951 (or above)

Choice 2: CanCollide = false

Choice 3: Add many parts to try to resolve it and with different properties...

Choice 4: Custom CameraScript

Choice 5: Contact ROBLOX

Choice 6: Someone else might know?

EDIT: The Decal one is going to work... (credit to 'SH_Helper')

You could try offsetting the part using Brick Meshes.

This discussion is preserved as it was. New answers, comments, and votes are closed.