In order to have your 'func' function fire every .1 seconds, you will want to use the spawn function. spawn() is much like coroutine.wrap(function() end)(), which is the equivalent to coroutine.resume(coroutine.create(function() end)) except you can do a few more things with coroutines. Spawn and Coroutines are kind of like threads someone can probably explain this better than I can, to put it in simple terms, it is like your function is running in another script.
Since you already defined your function you do not need to copy and paste the function into the spawn function.
function func()
wait(1)
print("Done")
end
while true do
wait(0.1)
spawn(func)
end
######Have any questions, feel free to ask! If this answer helped or solved your problem then don't forget to leave an upvote and accept the answer.