#For Loop and Tables

10 messages · Page 1 of 1 (latest)

brave gull
#

So ive made a script that makes a fade for all the frames and text guis in the screengui using for loops and tables, but its not working. any help?
The LocalScript;
then
wait(.5)
script.Parent.Parent.Visible = false
local Aud = script.Parent.Parent.Audio
local Frame = script.Parent.Parent.Frame
local Friend = script.Parent.Parent.Friends
local Warn = script.Parent.Parent.Warning
local Continue = script.Parent

    local fadeitems = {true,Frame,Friend,Continue,Aud,Warn}table.insert(fadeitems, script.Parent.Parent.Parent.Group)
    task.wait(0.03)
    for i = 1,100,1 do
            
         fadeitems[i].Transparency = i/10
        wait(1)
    end
end

end

#

I can also send screenshots of the contents inside the frames and a screenshot of the script if that makes it easier

#

For Loop and Tables

weak stream
#

what is that then at the top?

brave gull
quick quiver
#

studio** You are now Level 4! **studio

brave gull
#

it's supposed to wait. 5 if th player interacts with the gui/screen then does the transparency fade

#

I think the problem might be the for i = 1,100,1 but I’m not to sure

somber folio
#

U can Just use tweenservice