Suddenly in the game the visibility of hands in the first person stopped working

The print shows that the function works, but the arms and legs are not visible in the first person setting
LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson

function antiTrans(part, trans, var)
	if part and part:IsA("BasePart") then
		if var == 1 then 
			if part.Name=="Right Arm"  or
				part.Name=="Left Arm"  or
				part.Name=="Left Leg"  or
				part.Name=="Right Leg" 
				--	or part.Name=="Torso"
			then 			
				part.LocalTransparencyModifier = trans	
                                 print(111)
			end		
	end
end

task.spawn(function()		
				
		while true  do 
			for _,v in pairs(Character:GetChildren()) do					
				antiTrans(v, 0, 1)
			end			
			 task.wait()			
		end
	end)

antiTrans(v, 1, 1)--1 is transparent and 0 is not

1 Like

I need to see the hands in the first person

function antiTrans(part, trans, var)
	if part and part:IsA("BasePart") then
		if var == 1 then 
			if part.Name=="Right Arm"  or
				part.Name=="Left Arm"  or
				part.Name=="Left Leg"  or
				part.Name=="Right Leg" 
				--	or part.Name=="Torso"
			then
				print(part.LocalTransparencyModifier)--If not working, check past value.
				part.LocalTransparencyModifier = trans
			end
		end--blaces
	end
end
if part.Name=="Right Arm"  or
				part.Name=="Left Arm"  or
				part.Name=="Left Leg"  or
				part.Name=="Right Leg"				
			then 			
				print(part.LocalTransparencyModifier)
				part.LocalTransparencyModifier = trans	
				print(part.LocalTransparencyModifier)			
			end

for some reason the value returns back, although everything worked a day ago, what could I do?


13:25:49.310  1  -  Client - StartChr:125
  13:25:49.310  0  -  Client - StartChr:127
  13:25:49.310  1  -  Client - StartChr:125
  13:25:49.310  0  -  Client - StartChr:127
  13:25:49.310  1  -  Client - StartChr:125
  13:25:49.310  0  -  Client - StartChr:127
  13:25:49.310  1  -  Client - StartChr:125
  13:25:49.310  0  -  Client - StartChr:127

Documentation says use part.Transparency or set LocalModifier to -1 or something
https://developer.roblox.com/en-us/api-reference/property/BasePart/LocalTransparencyModifier

1 Like

Same problem here. The LocalTransparencyModifier for the right arm always gets reset to 1.
Interestingly, it does not happen for the left arm in my case.

1 Like

Solution: use BindToRenderStep to update the LocalTransparencyModifier again and again with Enum.RenderPriority.Camera.Value + 1
Credit: @Meowsionist
LocalTransparencyModifier on Arms broken for me - Help and Feedback / Scripting Support - DevForum | Roblox

1 Like