Lets say for example I have a frame and in that frame is a bunch of ImageButtons and in those ImageButtons are a bunch of Values and if those values were different like 1,2,3,4,5,6 how would i create a loop to find 1,2 or 3,4 or 5,6? (In the scrolling frame, there are buttons and in those buttons are values like 1,2,3,4,5)
Any Help? This is the script i created:
(NewCounter is the incrementing value)
repeat wait()
for _, v in pairs(script.Parent.Parent.Parent.ScrollingFrame:GetChildren(firstValue, secondValue)) do
if v:FindFirstChild("NewCounter") then
print("Passed 1")
NewCounter = v:FindFirstChild("NewCounter")
OtherCounter = v:FindFirstChild("NewCounter")
if NewCounter.Value == firstValue then
print("Passed 2")
firstValue = firstValue + 1
secondValue =secondValue + 1
print(OtherCounter.Value)
if OtherCounter.Value == secondValue then
print("Passed 3")
NewCounter.Value = OtherCounter.Value
NewCounter.Parent.Position = OtherCounter.Parent.Position
print("Weird script...")
end
end
end
end
until OtherCounter.Value == secondValue
Any help would be great, tell me if I need to add something more or if something is wrong with this question...

3 comments
These seems about right, thank you..
ur face seems about right neil
thx