battle309 Posted September 25, 2012 Share Posted September 25, 2012 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 Link to comment
battle309 Posted September 25, 2012 Author Share Posted September 25, 2012 it doesnt count up that just sets time for function to start Link to comment
Jaysds1 Posted September 25, 2012 Share Posted September 25, 2012 setTimer and resetTimer Link to comment
battle309 Posted September 25, 2012 Author Share Posted September 25, 2012 how would you start setTimer off i know resetTimer is onPlayerDeath Link to comment
Jaysds1 Posted September 25, 2012 Share Posted September 25, 2012 (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 September 25, 2012 by Guest Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now