Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How I can disable the local transparency of your character even if you have first person?

When the camera is put in first person the character's local transparency is set to 1, how can I avoid that? that is, even if the player has first person you can still see the hands, arms and body of your character

1 answer

✓ Accepted answer

You can use a property of a basepart called LocalTransparencyModifier.

LocalTransparencyModifier can only be ran on the client so this script has to be in a localscript.

local Player = game.Players.LocalPlayer

local char = Player.Character or Player.CharacterAdded:Wait()

char["LeftFoot"].LocalTransparencyModifier = 0
char["LeftHand"].LocalTransparencyModifier = 0
char["LeftLowerArm"].LocalTransparencyModifier = 0
char["LeftLowerLeg"].LocalTransparencyModifier = 0
char["LeftUpperArm"].LocalTransparencyModifier = 0
char["LeftUpperLeg"].LocalTransparencyModifier = 0
char["RightFoot"].LocalTransparencyModifier = 0
char["RightHand"].LocalTransparencyModifier = 0
char["RightLowerArm"].LocalTransparencyModifier = 0
char["RightLowerLeg"].LocalTransparencyModifier = 0
char["RightUpperArm"].LocalTransparencyModifier = 0
char["RightUpperLeg"].LocalTransparencyModifier = 0

1 comment

0

thanks, this works but how can I use it only when I change to the first person? because you can change from first to 3rd person

This discussion is preserved as it was. New answers, comments, and votes are closed.