Jump to content

need some help guys


battle309

Recommended Posts

Posted

Hey, I want to make a script that counts up to 5 minutes then if the player hasn't died in 5 minutes they win but I cant find any think wiki for it

example

I last for 4 minutes then I die. I want my time to reset and start counting up to 5 minutes again

Posted (edited)

ok, example:

local count = 0 
timer = setTimer(function() 
     if count==5 then 
          outputChatBox("You have won!") 
          killTimer(timer) 
     else 
          count = count + 1 
     end 
end,1000,0) 

Edited by Guest

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...