[IMPORTANT] How to make camera be inside the head but makes legs and torso can be seen?

Like in doors, you are in first person but you can see your arms and torso (also attachments and that…)

This is my current rig/startercharacter and i want it to be visible the arms while in first person.

if know anything about cameras or things like this please help me :D"

1 Like

edit LocalTransparencyModifier
https://create.roblox.com/docs/reference/engine/classes/BasePart#LocalTransparencyModifier

1 Like

Add also check if not Part.Name == "Head" then

when i grabbed the script when i walk the camera is in the back of the head (because of the animation), can you help me modify it so its infront?

Try this

local Character = --[[PATH_TO_CHARACTER]]
local Humanoid = Character:FindFirstChildWhichIsA(`Humanoid`, true)
local PrimaryPart = Character.PrimaryPart
local Head = Character:FindFirstChild(`Head`, true)
local Offset = vector.create(0, -1.25, -0.4) -- Adjust if you need

while task.wait() do
  Humanoid.CameraOffset = PrimaryPart.CFrame:ToObjectSpace(Head.CFrame) + Offset 
end

1 Like

This code isn’t great but does the job

local player = game.Players.LocalPlayer
local character = player.CharacterAppearanceLoaded:Wait() or player.Character

local WhitelistedParts = {"Torso", "Left Arm", "Right Arm", "Right Leg", "Left Leg"}

local function AddBodyTrans(part : Part)
	if table.find(WhitelistedParts, part.Name) then
		part.LocalTransparencyModifier = part.Transparency
		local transfunc = part:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
			part.LocalTransparencyModifier = part.Transparency
		end)
		print("Added transparency for new part")
	end
end

task.wait(5)
for i,p in character:GetChildren() do
	if p.ClassName == "Part" then
		AddBodyTrans(p)
	end
end

if youre also going to do this you might as well move the camera to the eyes (if you havent already) which allows you to make the head exist and have a more realistic camera