Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
Edited 5 years ago

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

Log in to vote
0
Answered by
DanzLua 2879 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

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
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 PepeElToro41 132 — 5y
Ad

Answer this question