#how to make timer

21 messages · Page 1 of 1 (latest)

steep rock
#

how to make timer

#

checking the timer and checking event in the same script.

ancient surge
#

Then use while and os.time

steep rock
#

oh okay

#

I'll search about that

#

hmm

#

I think that one is about time

#

counting how much time passed

#

.
for i = 10,1 ,-1 do
wait(1)
myVar += 1

but if there's a remote event coming I want it to stop

#

this code isn't clear enough srry

#

wait I'll be back tmr

alpine sierra
#

studio** You are now Level 1! **studio

slender kindle
#

I don’t understand what you’re trying to do

#

.Touched event will get fired in a separate “thread” meaning it won’t be yielded by the wait()

steep rock
#

hmm

#

I don't that works with da for loop

#

for while true I think that would work

steep rock
#

oh wait sorry I just tested it and

#

oh wait

#

no

steep rock
#

you could check for touching in for loop but the part.touched:connect funtion checks forever and it wont do stuffs outside once it have been called. I think