I know that is why i said for it to return false if the player didn't exist, I could of just wrote a script for them (& so could you) but what would they learn from that?Using addEvent has the limitation of not working if the player is offline. What might be a better option is to set the storage to os.time() and rather than checking if the storage = 1 in w.e script you are using it, instead compare the storage with the current os.time().
Using addEvent has the limitation of not working if the player is offline. What might be a better option is to set the storage to os.time() and rather than checking if the storage = 1 in w.e script you are using it, instead compare the storage with the current os.time().
I know that is why i said for it to return false if the player didn't exist, I could of just wrote a script for them (& so could you) but what would they learn from that?
Again, that is a limitation. If the player is offline and the event fails, the player will have that storage the next time they log in. You could do some fancy onlogin stuff to check if the player has the storage or you could just use the timestamp.I know that is why i said for it to return false
No. The concept is to compare 2 times together. os.time() is in seconds so all you have to do is say for example:I should do it like this?