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

Transparency On Body Parts Not Working?

Asked by 6 years ago

local rp = game.ReplicatedStorage local LeftArm = rp:WaitForChild ('LeftArm') local LeftArm = rp:WaitForChild ('LeftLeg') local LeftArm = rp:WaitForChild ('RightArm') local LeftArm = rp:WaitForChild ('RightLeg') local LeftArm = rp:WaitForChild ('Torso2')

game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) char:WaitForChild('Torso').Transparency = 1 char:WaitForChild('Left Leg').Transparency = 1 char:WaitForChild('Left Arm').Transparency = 1 char:WaitForChild('Right Leg').Transparency = 1 char:WaitForChild('Right Arm').Transparency = 1 end) end)

This Wont work

0
Codeblock please. H4X0MSYT 536 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

This will loop through all character's parts and make every one of them transparent

for i,v in pairs(char:GetChildren()) do
    if v:IsA("BasePart") then
        v.Transparency = 1
    end
end
Ad

Answer this question