So I have a script designed to make the players character visible while in first person, It works 80% of the time in studio making the character visible, in every testing play it prints out the statement saying it was made visible, but in the ROBLOX Game it will print it out then keep the player completely transparent
Script:
local char = player.Character or player.CharacterAdded:wait()
local humanoid = char:WaitForChild("Humanoid") -- waits for the humanoid in the character
function antiTrans(part)
if part and part.Name=="LeftUpperArm" or part.Name=="LeftLowerArm" or part.Name=="LeftHand" or part.Name=="RightUpperArm" or part.Name=="RightLowerArm" or part.Name=="RightHand" or part.Name== "UpperTorso" or part.Name=="LowerTorso" or part.Name=="LeftLowerLeg" or part.Name == "LeftUpperLeg" or part.Name == "LeftFoot" or part.Name == "RightUpperLeg" or part.Name == "RightLowerLeg" or part.Name == "RightFoot" then -- checks if a part and is a arm
part.LocalTransparencyModifier = part.Transparency
print(part, "Set")
part.Changed:connect(function (property)
if part.LocalTransparencyModifier == 1 then
print(part, "Set")
part.LocalTransparencyModifier = part.Transparency--Changes the local modifyer(client side only)
part.CastShadow = false
end
end)
end
end
for _,v in pairs(char:GetChildren()) do
antiTrans(v) -- adds all parts
end