|
| 25 Jan 2015 11:32 AM |
Hello, I need help- I am trying to make a script so the text on my screengui changes every 0.1 of a second, if you could use math.random that would be awesome!
(( I suck at scripting so it would be a huge favour ))
Thanks, -HeadlessHorror
"Its not about giving up, its about trying again."-HeadlessHorror |
|
|
| Report Abuse |
|
|
Crythox
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1188 |
|
|
| 25 Jan 2015 11:34 AM |
In the text label.
I can't think of a more efficient way to do this
local list = {"","","","","","","","","",""} local num = 1
while true do wait(math.random(.1,1.3)) script.Parent.Text = list[num] num = num + 1 if list[num] == nil then num = 1 end end
Add as many texts as you want in the list table. |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2015 11:45 AM |
| I think I messed up, I meant the colour changes every 0.1 second. |
|
|
| Report Abuse |
|
|
Crythox
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1188 |
|
|
| 25 Jan 2015 12:32 PM |
while true do wait(math.random(.1,.3)) script.Parent.Color3 = Color3.new(math.random()/255,math.random()/255,math.random()/255) end
No worries |
|
|
| Report Abuse |
|
|
BowtieMod
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 804 |
|
|
| 25 Jan 2015 12:35 PM |
script.Parent.Color3 = BrickColor.Random().Color3
make shorter |
|
|
| Report Abuse |
|
|