You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I want the script to print “Success” instead of “1 2”
-
What is the issue? The code prints out “1 2”, meaning the numbers/orders don’t line up.
-
What solutions have you tried so far? I tried using repeat until. Well, it did nothing to help.
local tool
repeat for i, item in next, rep:WaitForChild("Items"):GetChildren() do
repeat wait(1) until item
if item:IsA("Tool") then
print("Item is a tool")
local order = item:WaitForChild("Order")
print("Finding thingz")
if price and order then
print("Found them!")
if order.Value == i then
print("Success")
print(item.Name)
else
print(order.Value.." "..i)
end
end
end
end until tool
Thank you!