Hello, I know this is horribly wrong, I will change it later, but what am I doing bad with Timera(), because at this state it freezes the game forever, no, wait, actually only while it will crash… Can anyone help me please?
function count()
timer = 3
Settimera(0)
local t1
while(timer ~= 0) do
t1 = Timera()
while (Timera() - t1) < 1000 do
SetTextColour(currentrace.Color.r,currentrace.Color.g,currentrace.Color.b,255)
SetTextScale(1.5, 1.5)
SetTextFont(0)
SetTextProportional(0)
SetTextEntry("STRING")
AddTextComponentString(tostring(timer))
DrawText(0.6,0.5)
end
timer = timer-1
end
t1 = Timera()
while (Timera() - t1) < 2000 do
SetTextColour(currentrace.Color.r,currentrace.Color.g,currentrace.Color.b,255)
SetTextScale(1.5, 1.5)
SetTextFont(0)
SetTextProportional(0)
SetTextEntry("STRING")
AddTextComponentString("GO!")
DrawText(0.6,0.5)
end...