I'm trying to create a script that let's the player in first person mode see there arms, torso, and legs. I ran into an issue where I kept on getting this error, luckily it didn't cause the script to shut down, but it's clogging up Output and I'm afraid it might slow performance. Here is the error
18:41:31.492 - LocalTransparencyModifier is not a valid member of Humanoid 18:41:31.492 - Stack Begin 18:41:31.493 - Script 'Workspace.gaberdell.HumanoidRootPart', Line 16 18:41:31.493 - Stack End
The code below
-- This Piece of Code is Designed so the Players Can See There Arms, Torso, and Legs, To Make the Game Feel More Like an FPS
while script.Parent.ClassName ~= "Model" do wait() end -- This is just to check if we are in the players model
local playerCharacter = script.Parent -- This vairiable is put in here to make the code easier to understand
game:GetService("RunService").RenderStepped:connect(function() -- We get renderstepped roblox's faster version of the While loop and no wait values are required as this alone won't crash the game
for num, object in pairs(playerCharacter:GetChildren()) do -- This line "finds" all of the Objects Located Inside of The Player's Model
if playerCharacter:FindFirstChild(object.Name) then -- Here we check to see if the Part exsists (Just in case)
if object.Name ~= "Head" or "HumanoidRootPart" and object.ClassName == "Part" then -- We find out if it's one of the parts we don't want to be transperent and is a brick
playerCharacter[object.Name].LocalTransparencyModifier = 0 -- Why we set LocalTransparencyModifier to 0 as opposed to regular Transparency is because where undoing roblox scripts that make it 1
end
end
end
end)

2 comments
As the output says. You're trying to set the transparency of the Humanoid, which is not a part. Add "object.Name ~= "Humanoid""
A humanoid is not a Part, they check for that.