local time, t = 10 * 60, 0
for x = 1, time do
addEvent(doSendAnimatedText, t, pos, ""..os.date("%M:%S", time), COLOR_LIGHTGREEN)
time = time - 1
t = t + 1000
end
Thanks, a school teacher actually helped me though.Code:local time, t = 10 * 60, 0 for x = 1, time do addEvent(doSendAnimatedText, t, pos, ""..os.date("%M:%S", time), COLOR_LIGHTGREEN) time = time - 1 t = t + 1000 end
hey @Limos how does this work? how can i add this on a tp? so it countdown my eventCode:local time, t = 10 * 60, 0 for x = 1, time do addEvent(doSendAnimatedText, t, pos, ""..os.date("%M:%S", time), COLOR_LIGHTGREEN) time = time - 1 t = t + 1000 end
can you give me an example how to change it? and how do i add it to globalevents? in a new file?Change pos to the position of the teleport.
can you give me an example how to change it? and how do i add it to globalevents? in a new file?
<globalevent name="time" interval="2000" script="nameofscript.lua" />
local time, t = 60 * 60, 0
for x = 1, time do
addEvent(doSendAnimatedText, t,{x = 303, y = 265, z = 15 }, ""..os.date("%M:%S", time), COLOR_LIGHTGREEN)
time = time - 1
t = t + 1000
end