Hey! I’m making a script to make the character visible when zommed in. This game is in R6
Script name: First Person
Location: StarterCharacterScripts
local Player = game.Players.LocalPlayer
local Char = Player.Character
local function a(v)
if v:IsA("Part") and v.Name ~= "Head" and v.Name ~= "Torso" then
print("ran ".. v.Name)
v.LocalTransparencyModifier = v.Transparency
v:GetAttributeChangedSignal("LocalTransparencyModifier"):Connect(function()
v.LocalTransparencyModifier = v.Transparency
end)
end
end
for i, v in pairs(Char:GetChildren()) do
a(v)
end
Char.ChildAdded:Connect(a)
Output:
ran Right Arm
ran HumanoidRootPart
ran Left Arm
ran Right Leg
ran Left Leg
Problem: This script used to work, all the parts are detected and their local transparency is changed, but still invisible. Can somone help me?