Hello guys,
I’ve been trying to make a whole body part of a player transparency to 1 but the code I have written is a bit long. Is there anyway to shorten my code?
for _, player in pairs(playersPlaying) do
local character = player.Character or player.CharacterAdded:Wait()
for _, body in pairs(character:GetChildren()) do
for _, parts in pairs(CharacterBodyParts) do
if body.Name == "Pal Hair" then
local handle = body.Handle
if handle then
handle.Transparency = 1
end
end
if body.Name == parts then
body.Transparency = 1
print("All body part are transparent")
end
end
end