#map changing and spawn location

1 messages · Page 1 of 1 (latest)

safe ether
#

in my game i want there to be a 5 min timer and after 5 min you tele to different map with different spawn locations.

onyx robin
#
function Timer(SecLength)
  local current = os.clock() --time now
  local finish = current + SecLength --finish time

  while os.clock() < finish do
    task.wait(1.0)
    --increment timer UI or other misc. operations
  end
  
  --loop has ended, past finish time
  --add other logic inside of this function or after it's called
  
end
#

@safe ether

safe ether
onyx robin
#

If you call Timer(#seconds), it will wait the number of seconds you pass

#

Timer(300) waits 5 minutes

safe ether
onyx robin