Well, my problem is that this part of the script does not detect things put into the character externally with scripts, it only detects the parts of the character and I don’t know how to use it with FindFirstChild. This is a first person and I want to add a logging system, I did it, everything is fine but in the first person you only see the parts of the body and not the external parts.
local char = script.Parent
local humanoid = char:WaitForChild("Humanoid")
local camera = workspace.CurrentCamera
humanoid.CameraOffset = Vector3.new(0, 0, -0.55)
local armParts = {"LeftHand", "LeftLowerArm", "LeftUpperArm", "RightHand", "RightLowerArm", "RightUpperArm"}
for i, bodyPart in pairs(char:GetChildren()) do
if table.find(armParts, bodyPart.Name) and bodyPart:IsA("BasePart") then
bodyPart.LocalTransparencyModifier = bodyPart.Transparency
bodyPart:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
bodyPart.LocalTransparencyModifier = bodyPart.Transparency
end)
end
end
local RamaGrande = script.Parent:FindFirstChild{"RamaGrande"}
local Tronco = script.Parent:FindFirstChild{"Tronco"}
for i, Material in pairs(char:GetChildren()) do
if table.find(RamaGrande, Material.Name) and Material:IsA("BasePart") then
Material.LocalTransparencyModifier = Material.Transparency
Material:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
Material.LocalTransparencyModifier = Material.Transparency
end)
end
end