Why can't i see my bodyparts?

Hi, So i tried making it so you can see yourself in firstperson but it doesnt work?

heres the script:

local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character.Humanoid
local camera = workspace.CurrentCamera

player.CameraMaxZoomDistance = 0.5
humanoid.CameraOffset = Vector3.new(0,0,-1)

for i, v in pairs(character:GetChildren()) do
	if v:IsA("BasePart") and v.Name ~= "Head" then
		
		v:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
			v.LocalTransparencyModifier = v.Transparency
		end)
		
		v.LocalTransparencyModifier = v.Transparency
		
	end
end

How could i fix this?

Its in the startercharacter

It works perfectly fine for me, did you put it in a normal script instance or a Local Script instance?

Also, instead of setting the player’s max zoom distance to 0.5, you could instead set the player’s camera mode to LockFirstPerson like this

local player = game.Players.LocalPlayer
player.CameraMode = Enum.CameraMode.LockFirstPerson