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

How can I change the Transparency values in a :GetChildren() manner?

I've tried using FindFirstChild, but that didn't work out. I'm making 6 garage doors that become transparent SLOWLY in a for loop. This is all I tried so far: SCRIPT

while true do
for transp = 1, 0, -.01 do
	local z = Workspace:FindFirstChild("party", true)
    if z then
	z.Transparency = transp
end
	wait()
end
wait()
for transp = 1, 0, .01 do
    local z = Workspace:FindFirstChild("party", true)
    if z then
	z.Transparency = transp
	wait()
end
 end
   end

1 answer

while true do
for transp = 1, 0, -.01 do
    local z = game.Workspace:GetChildren()
    if z then
for _,v in pairs(z) do
if v.Name == "party" then
    v.Transparency = transp
end
    wait()
end
wait()
for transp = 1, 0, .01 do
     local z = game.Workspace:GetChildren()
    if z then
for _,v in pairs(z) do
if v.Name == "party" then
    v.Transparency = transp
    wait()
end
 end
   end

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