Hi! So, I have made a script where I tween the transparency of the player to be 1 whenever the player dies. I have made this script both in local and server (I used LocalPlayer in local and In server-side, I used PlayerAdded) Here is the script
local ts = game:GetService("TweenService")
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid")
hum.Died:Connect(function()
local tweenInfo = TweenInfo.new(
0.13,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false,
0
)
for i, v in pairs(char:GetChildren()) do
if v:IsA("Part") then
print("yes")
print(v)
local tween = ts:Create(v,tweenInfo,{Transparency = 1})
tween:Play()
print(v.Transparency)
end
end
end)
end)
end)
It detects the body parts but it does not manipulate their transparency. Why?

6 comments
You are not playing the tween on line 17, do; ts:Create(v,tweenInfo,{Transparency = 1}):Play(); + call it with : and also use WaitForChild for instances, it will save you
It worked. it detects the body parts but it does not change their transparency
assuming that you are checking if v:IsA('Part') it only works for the RootPart and Head since those are Parts, other R15 limbs are MeshParts so your option is to check from the main class which is v:IsA('BasePart'), if i am sure, R6 Limbs were updated to mesh part class too.
Im in R6 and it still printed the body limbs.
It only printed the body limbs on R6 because R6 is only made out of Parts. I suggest changing line 15 to the following: if v:IsA("Part") or v:IsA("MeshPart") then
Well nothing is changing even the parts.