Is there a delay function or something?

How can I delay something before I call a function? If I had this code:

local function mySecondFunction() --code code code, and more code end local function myFunction() --code code code --delay... how to do that? mySecondFunction() end

How would I delay before I called mySecondFunction?

timer.performWithDelay(milliseconds, function, iterations (optional))

In your example would be something like:

timer.performWithDelay(1000, mySecondFunction)

Gosh, that’s so obvious! Sorry, I should have known.

timer.performWithDelay(milliseconds, function, iterations (optional))

In your example would be something like:

timer.performWithDelay(1000, mySecondFunction)

Gosh, that’s so obvious! Sorry, I should have known.