Ok So i have an invisible power up but its not fully functional yet i want to have a for look look through the character to make every thing that can be Transparent = 100 to do so, Can someone help me simplify my code and learn to do a for loop like this? The current code i have cant make clothing or accessory invis
Here's my code :
local dad = script.Parent
local function Invis(part)
local p = part.Parent
if game.Players:GetPlayerFromCharacter(p)then
p.LeftFoot.Transparency = 100
p.LeftLowerLeg.Transparency = 100
p.LeftUpperLeg.Transparency = 100
p.LeftUpperArm.Transparency = 100
p.LeftLowerArm.Transparency = 100
p.LeftHand.Transparency = 100
p.RightHand.Transparency = 100
p.RightLowerLeg.Transparency = 100
p.RightFoot.Transparency = 100
p.RightUpperArm.Transparency = 100
p.RightLowerArm.Transparency = 100
p.RightUpperLeg.Transparency = 100
p.LowerTorso.Transparency = 100
p.UpperTorso.Transparency = 100
p.Head.Transparency = 100
p.Head.face.Transparency = 100
dad:Destroy()
wait(10)
p.LeftFoot.Transparency = 0
p.LeftLowerLeg.Transparency = 0
p.LeftUpperLeg.Transparency = 0
p.LeftUpperArm.Transparency = 0
p.LeftLowerArm.Transparency = 0
p.LeftHand.Transparency = 0
p.RightHand.Transparency = 0
p.RightLowerLeg.Transparency = 0
p.RightFoot.Transparency = 0
p.RightUpperArm.Transparency = 0
p.RightLowerArm.Transparency = 0
p.RightUpperLeg.Transparency = 0
p.LowerTorso.Transparency = 0
p.UpperTorso.Transparency = 0
p.Head.Transparency = 0
p.Head.face.Transparency = 0
end
end
dad.Touched:Connect(Invis)
for doodoo =0 , 10 do
wait(1)
if doodoo == 10 then
dad:Destroy()
end
end

1 comment
Thanks!