Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admin="Fuzzyfirsdog#0000" -- insert your name in the quotation marks
- time = 0
- timerTime = 1
- average=0
- numbers=0
- S = string.byte("S")
- Space = 32
- tfm.exec.bindKeyboard(admin, Space, true, true)
- tfm.exec.bindKeyboard(admin, S, true, true)
- timerStart=0
- function eventKeyboard(playerName, key, down, xPlayerPosition,yPlayerPosition)
- if key==Space then
- timerStart=1
- average=average+1
- print("lol")
- elseif key==S then
- numbers=numbers+display
- average=numbers/average
- print("<VP>"..average)
- ui.addTextArea(0, "<font size='40'>"..display.." seconds!", nil, 322, 148, 310, 125, 0x324650, 0x000000, 0, true)
- timerStart=0
- time=0
- timerTime=1
- end
- end
- function timers()
- time = time + 0.5
- if time==timerTime then
- ui.addTextArea(0, "<font size='40'>"..time, nil, 322, 148, 310, 125, 0x324650, 0x000000, 0, true)
- timerTime = timerTime + 1
- end
- end
- ui.addTextArea(0, "<font size='40'>0.00", nil, 322, 148, 310, 125, 0x324650, 0x000000, 0, true)
- function eventLoop()
- display = timerTime-1
- if timerStart==1 then
- timers()
- end
- end
Add Comment
Please, Sign In to add comment