Say at one point I run the function :AddItem() and I say I wanted to delete an object in 60 seconds. Then later I run it again at 60 seconds on the same object. Would it reset the timer and set it to 60 seconds? Or would it delete after the first 60 seconds have past?
1 Like
Im pretty sure it would delete after the 1st 60 seconds.
3 Likes
Depending on the variable, if in case your variable is 60 seconds (1 minute) and you are eliminating 60 seconds again you will have to put a fixed variable and in a function removing it - 1 second so it will not affect the variable itself and it will restart, you can make an infinite loop if you also put that when the second 60 reaches 0 the variable returns to be 60.
im not 100% sure but im pretty sure if you put a negative number in the :AddItem() function it’ll just delete the instance instantly