Task.spawn issue

so im trying to make to function top the bottom function(image) I drew lines to show which functions start which (lines go up). but I cant make to function start bottom one. I cant see how I can change this around since you can only spawn functions that are above the function your trying to spawn. sorry if its a bad explanation i suck at explaining.
image

An alternative you can do is adding the functions to a table:

-- Example Usage
local gameManager = {}

function gameManager:inLobbyGameStart()
   self:Timer() -- Call the timer function
end

function gameManager:Timer()
   -- Can be accessed by functions defined before it (above)
end

--...

Explanation:

2 Likes