I want to loop a function, but not infinitely. Let's say I wanted to do it 5 times.
function spawnmob() end spawnmob() spawnmob() spawnmob() -- not what i want to do spawnmob() spawnmob()
Is there a way to loop functions X number of times?
Use a return statement :)
local o = 0 return o = o + 1 spawnmob() wait (1) ---Replace with number of seconds within each spawn (IMPORTANT) until o = 5 ----Replace 5 with whatever
Best of Luck