‹ All natives
Namespace: TIME
API set: server
Language: Luau Improve
thread
thread(fn: () -> ())
Runs a function that can call wait.
Parameters#
- fn (
() -> ()): function started right away
Example#
thread(function()
while true do
log("tick")
wait(60)
end
end)