لمن تستخدمها في التلوين تعطيك 3 ارقام عشوائية math.random
function randomColors ( )
guiLabelSetColor ( theLabel , math.random(255), math.random(255), math.random(255) )
end
زي كذا setTimer واذا تبي تستخدمها عشان تخلي اللبل زي الفلاش, استخدم
function randomColors ( )
guiLabelSetColor ( theLabel , math.random(255), math.random(255), math.random(255) )
end
setTimer ( randomColors, 200, 0 )
+ تكتب بطريقتين math.random
1. math.random(255) <-- هذي الطريقة راح تختار أي رقم عشوائي يساوي او تحت 255 وفوق او يساوي 0
2. math.random(100,255) <-- هذي الطريقة راح تختار اي رقم عشوائيتحت او يساوي 255 وفوق او يساوي 100