So i havent really seen any posts talking about this issue, where localtransparencymodifier seems to give an error whenever i use it, even tho its working perfectly fine!
Maybe its because my game is R6, but im not entirely sure. heres the piece of code im using:
RunService.RenderStepped:Connect(function()
for _, rizz in pairs(character:GetChildren()) do
if string.match(rizz.Name, "Arm") then
rizz.LocalTransparencyModifier = 0
end
end
end)
You are attempting to modify the “CharacterMesh” class which is found in character models (basically special meshes for character parts).
Their instance name sometimes matches limb names like “Roblox 2.0 Right Arm” as shown in your error message.
Since LocalTransparencyModifier only exists in parts try checking if the part is a BasePart:
RunService.RenderStepped:Connect(function()
for _, Part in pairs(character:GetChildren()) do
if string.match(Part.Name, "Arm") and Part:IsA("BasePart") then
Part.LocalTransparencyModifier = 0
end
end
end)