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)
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?
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.