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

how to let my second for i loop start at button 37?

local numberoftime = 36
local numberoftime2 = 100
local frame = script.Parent.Parent.AlanWalkerFaded

script.Parent.MouseButton1Click:Connect(function()
frame.Visible = true
script.Parent.Parent.TextLabel.Visible = false
script.Parent.Visible = false
wait(9)
frame.Round1.Visible = true
wait(1)
frame.Round1.Visible = false
frame.Button1.Visible = true
wait(.6)
for i = 1, numberoftime do
        frame:WaitForChild("Button"..i).Visible = false
        frame:WaitForChild("Button"..i+1).Visible = true
        wait(.6)
end
frame.Button37.Visible = false
frame.Round2.Visible = true
wait(1)
frame.Round2.Visible = false
for i = 1, numberoftime2 do
        frame:WaitForChild("Button"..i).Visible = false
        frame:WaitForChild("Button"..i+1).Visible = true
        wait(.6)
end
wait()
end)

so i have a second for i loop but i want it to start at button 37 how can i solve this issue?

1 answer

✓ Accepted answer

For any other pepole having this issue i made a folder inside my frame called part 2 and let the second for i loop find that folder!

1 comment

0

glad you got it working

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