So I've made some simple falling platforms, when they fall the make an invisible clone where they used to be and fall into the void, a few seconds later the clone becomes visible. That all works fine, but I recently added a custom texture and realized that since they have their own transparency they won't turn transparent with the part, do I have to really have to write line for every single individual texture or is there a more efficient way to accomplish this?
You can reiterate via a pairs
loop through each Texture and set their transparency that way. The code below is a theoretical example, you’ll have to modify it to your liking as you have not provided your own program.
local TexturedParts = workspace.TexturedParts:GetChildren() for _,Part in pairs(TexturedParts) do local Texture = Part:FindFirstChildOfClass("Texture") if (Texture) then Texture.Transparency = 0 end end