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

Transparency On Body Parts Not Working?

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

1 comment

0

Codeblock please.

1 answer

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

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