Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
hokyboy 270 Moderation Voter
5 years ago
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

Log in to vote
0
Answered by
hokyboy 270 Moderation Voter
5 years ago

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!

0
glad you got it working royaltoe 5144 — 5y
Ad

Answer this question