• Hey! Register here to create your account, engage with the community, and talk about what is new!

How can I do a event loop every 15 seconds?

Francidium

New member
Joined
Oct 4, 2021
Messages
19
Reaction score
17
Im working on a game, but i dont know how to make a event happen every 15 seconds.
I have no rank, and im working on a game that has a random event every 15 seconds.
 

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,260
Reaction score
356
You can use a Repeat Forever and place a Wait(300) and it will run forever and do something every 300 ticks (or you can change the tag in the wait and put 15 instead)
 

1pe

Forum adept
Overlord
Joined
Sep 23, 2020
Messages
121
Reaction score
25
You can use a Repeat Forever and place a Wait(300) and it will run forever and do something every 300 ticks (or you can change the tag in the wait and put 15 instead)
You may also want to put that in a process which is called with no target when the first player joins the plot
 

CNK_

New member
Overlord
Joined
Oct 3, 2021
Messages
14
Reaction score
10
Just a little tip the tps (ticks per second) is how many updates happen every second for example a repeater runs for 1-4 tick(s) depending on what you select. Typically the tps is around 20 so if I were to put 20 into a (control > wait) it would run for 1 second 20 tps*15 seconds is 300 so you would want to put a 300 into the chest.

Here is a little refrence I made. (This is actually running on 14ish ticks per second since I converted it to a gif.)
asdsads (1).gif
 
Last edited:
Top Bottom