I have this code wich SHOULD work but it doesn't. So, lol, plz help :))
local amount= 180 --the for loop number
local length = 5 --how long it should last
for i = 1, amount do
wait(length/amount)
end
I will mark you as answer if you can help, thx!

2 comments
Hello, unfortuantly, I actually was trying to do length divided by amount because I wanted the for loop to last the length of the length variable. If I were to do it the other way round, it would wait 36 seconds between each wait lol
Ohh, well for loops are used to run through something a set amount of times, so you can’t really set how long you want it to last for, and there’s really no set time built in to a for loop. The way that you have it right now is that it runs through the loop 400 times and waits .027 seconds before it runs again