1

# How do I fix "for and do loop ending with until"?

Edited 1 year ago

Hello, I am very new to scripting, so thanks very much for help. I tried to make script to collect Crops number from 0 to 115. After it reaches max - 115, whole loop resets and it wait 1 minute and after it starts collecting from number 0 again. I tried everything, but always I get syntax error and I don't know what to do anymore. Even google didn't help. Thank you very much. PS: I know it is simple and noob script, but I am scripting only 2 days. Thank you.

for count = 0, 115 do
local max = 115
local string_1 = "ClaimCrop";
local number_1 = count
local Target = game:GetService("Players").BeautifulAuraLover.Function;
Target:InvokeServer(string_1, number_1);
until max then
wait(60)
return count
end


0
local count = 0