Discuss Scratch
- robloxnoob27
-
New Scratcher
100+ posts
more timer blocks
set timer to blank seconds block
so
set timer style to block
count-up: it's the current style of the timer, its like a stopwatch
countdown: like an alarm clock, it counts down. it stops when it reaches 0 seconds
set timer to[]seconds::sensingit sets the timer to a number you put in the input
so
set timer to[50]seconds::sensingwould set the timer to 50 seconds
set timer style to block
set timer style to [count-up v]::sensingi'll explain the drop-downs:
count-up: it's the current style of the timer, its like a stopwatch
countdown: like an alarm clock, it counts down. it stops when it reaches 0 seconds
- oddbotout11
-
Scratcher
43 posts
more timer blocks
don't forget these timer block!
run timer with id []::sensing
stop timer with id []::sensing
get timer with id []::sensing
get timer with id () value :: sensing :: :: reporter
when timer with id [] > (10):: hat :: :: events
Last edited by oddbotout11 (Sept. 10, 2026 12:44:46)
- I_wantasheep
-
Scratcher
1000+ posts
more timer blocks
ever heard of
forever
change [timer1 v] by (1)
wait (1) seconds
- Bloxxerblox2015
-
Scratcher
43 posts
more timer blocks
no support.
ever heard offorever
change [timer1 v] by (1)
wait (1) seconds
- HAL95131
-
Scratcher
100+ posts
more timer blocks
no support.ever heard offorever
change [timer1 v] by (1)
wait (1) seconds
That is not accurate.
- I_wantasheep
-
Scratcher
1000+ posts
more timer blocks
bloxxer's post or my post?no support.ever heard offorever
change [timer1 v] by (1)
wait (1) seconds
That is not accurate.
- NutOfCoco
-
Scratcher
500+ posts
more timer blocks
ever heard ofThis is a horrible workaround, instead:forever
change [timer1 v] by (1)
wait (1) seconds
define Add Timer (timer); Start: (start) Type: (type)
if <(type) = [countdown]> then
add ((timer::sensing) + (start)) to [timerStart v]
add (-1) to [timerType v]
end
if <(type) = [stopwatch]> then
add ((timer::sensing) - (start)) to [timerStart v]
add (1) to [timerType v]
end
add (timer) to [timerID v]
define timer (timer)
set [idx v] to (item # of (timer) in [timerID v]
set [timer v] to ((item (idx) of [timerType v]) * ((timer::sensing) - (item (idx) of [timerStart v])))
- HAL95131
-
Scratcher
100+ posts
more timer blocks
ever heard ofThis is a horrible workaround, instead:forever
change [timer1 v] by (1)
wait (1) secondsdefine Add Timer (timer); Start: (start) Type: (type)
if <(type) = [countdown]> then
add ((timer::sensing) + (start)) to [timerStart v]
add (-1) to [timerType v]
end
if <(type) = [stopwatch]> then
add ((timer::sensing) - (start)) to [timerStart v]
add (1) to [timerType v]
end
add (timer) to [timerID v]
define timer (timer)
set [idx v] to (item # of (timer) in [timerID v]
set [timer v] to ((item (idx) of [timerType v]) * ((timer::sensing) - (item (idx) of [timerStart v])))
Thank you. I would have assumed it had something to do with days since 2000, but that seems much more intuitive.
- I_wantasheep
-
Scratcher
1000+ posts
more timer blocks
i'm not as good as the guy above brobloxxer's post or my post?Yours

edit: post 15
Last edited by I_wantasheep (Sept. 10, 2026 17:22:02)
- robloxnoob27
-
New Scratcher
100+ posts
more timer blocks
for a single timerever heard ofThis is a horrible workaround, instead:forever
change [timer1 v] by (1)
wait (1) secondsdefine Add Timer (timer); Start: (start) Type: (type)
if <(type) = [countdown]> then
add ((timer::sensing) + (start)) to [timerStart v]
add (-1) to [timerType v]
end
if <(type) = [stopwatch]> then
add ((timer::sensing) - (start)) to [timerStart v]
add (1) to [timerType v]
end
add (timer) to [timerID v]
define timer (timer)
set [idx v] to (item # of (timer) in [timerID v]
set [timer v] to ((item (idx) of [timerType v]) * ((timer::sensing) - (item (idx) of [timerStart v])))
define timer type: (type) start time: (start time)
if<(type)=[countdown]>then
set[change v]to[-1]
else
set[change v]to[1]
end
set[timer v]to(start time)
reset timer
repeat until<(timer::variables)<[0]>
set[timer v]to((start time)+((change)*(timer)))
end
set[timer v]to[0]
Last edited by robloxnoob27 (Sept. 10, 2026 18:10:20)
- TBMTheFunniestPerson
-
Scratcher
100+ posts
more timer blocks
Support, we need an actual block since we have a workaround. Workarounds increase block count.
- robloxnoob27
-
New Scratcher
100+ posts
more timer blocks
for multiple timersfor a single timerever heard ofThis is a horrible workaround, instead:forever
change [timer1 v] by (1)
wait (1) secondsdefine Add Timer (timer); Start: (start) Type: (type)
if <(type) = [countdown]> then
add ((timer::sensing) + (start)) to [timerStart v]
add (-1) to [timerType v]
end
if <(type) = [stopwatch]> then
add ((timer::sensing) - (start)) to [timerStart v]
add (1) to [timerType v]
end
add (timer) to [timerID v]
define timer (timer)
set [idx v] to (item # of (timer) in [timerID v]
set [timer v] to ((item (idx) of [timerType v]) * ((timer::sensing) - (item (idx) of [timerStart v])))define timer type: (type) start time: (start time)
if<(type)=[countdown]>then
set[change v]to[-1]
else
set[change v]to[1]
end
set[timer v]to(start time)
reset timer
repeat until<(timer::variables)<[0]>
set[timer v]to((start time)+((change)*(timer)))
end
set[timer v]to[0]
when gf clicked
reset timer
delete all of [starttimes v]
delete all of[timerat v]
delete all of[upordown v]
repeat[10]//set this number to how many timers you want
add[0]to[starttimes v]
add[0]to[timerat v]
add[0]to[upordown v]
define create timer with id:(id) type:(type) start time:(start time)
replace item (id) of [starttimes v] with (start time)
replace item (id) of [timerat v] with (timer)
replace item (id) of [upordown v] with (((-2)*<(type)=[countdown]>)+(1))
define get timer with id:(id)
set [timer v] to((item(id)of[starttimes v])*(((timer)-(item(id)of[timerat v]))*(item(id)of[upordown v])))