Repeat until what runs first

In a repeat until loop does the repeat run first or is the until statement checked first?

The until check runs after the code inside the repeat until loop.

local num = 1

repeat -- this runs first
	task.wait()
	num += 1
until num >= 20 -- this runs last
1 Like

okay, thanks for the help

aaaa