• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Crescent time.

Joined
Mar 14, 2020
Messages
139
Solutions
3
Reaction score
11
I need this script:

Player 1 move to a tile -> A timer is started
Player 2 move to the same tile -> A timer is started, the timer of Player 1 stops.
If Player 1 already passed in that tile before
do a SUM of timers to get the total time that player 1 spended in the tile

Ex:
Player 1 move to tile and stays for 5 min
Player 2 kicks Player 1 and move to the same tile and stays for 8 min
Player 1 kicks Player 2 and move to the tile for 2 min

Final result that should be stored:
Player 1 total time: 7 Mins.
Player 2 total time: 8 Mins.

Player 2 won the event (the event can have multiples players more than 2)

If u dont want to make the script but know how, how can i do the timer like that?
 
I need this script:

Player 1 move to a tile -> A timer is started
Player 2 move to the same tile -> A timer is started, the timer of Player 1 stops.
If Player 1 already passed in that tile before
do a SUM of timers to get the total time that player 1 spended in the tile

Ex:
Player 1 move to tile and stays for 5 min
Player 2 kicks Player 1 and move to the same tile and stays for 8 min
Player 1 kicks Player 2 and move to the tile for 2 min

Final result that should be stored:
Player 1 total time: 7 Mins.
Player 2 total time: 8 Mins.

Player 2 won the event (the event can have multiples players more than 2)

If u dont want to make the script but know how, how can i do the timer like that?
Start thread in request if u need something from 0.
 
Start thread in request if u need something from 0.
i'm looking more for a function that counts time than something from 0
Post automatically merged:

A general direction to follow - compare current times when players step in and out
Lua:
player:setStorageValue(stor, os.time())
hmmmmmm i think i see where i go now. ty
 
Back
Top