| |
|
|
| 02 Apr 2013 06:35 PM |
assuming "TextBox" is your variable for the textbox
TextBox.TextColor3 = Color3.new(math.random(1,255), math.random(1,255), math.random(1,255) |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 06:36 PM |
| Thanks. Needs another ) btw |
|
|
| Report Abuse |
|
|
nairod7
|
  |
| Joined: 26 Mar 2010 |
| Total Posts: 869 |
|
|
| 02 Apr 2013 06:39 PM |
local function RandomColor() return Color3.new(math.random(), math.random(), math.random()) end
Gui.BackgroundColor3 = RandomColor()
...or directly...
Gui.BackgroundColor3 = Color3.new(math.random(), math.random(), math.random()) |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 06:43 PM |
1) sorry forgot the other ")"
2) hi nairod7 |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 06:57 PM |
That, OR this works too:
BrickColor.random().Color
Which is nicer looking and more compact, but the Color3 gives a larger variety of colors
~Kill The Clones is the best game ever to be created on ROBLOX~ |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 06:59 PM |
| TextColor3 = Color3.new(math.random1,255)/255, math.random(1,255)/255, math.random(1,255)/255) |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2013 06:59 PM |
first math.random is wrong:
math.random(1,255)/255 |
|
|
| Report Abuse |
|
|
nairod7
|
  |
| Joined: 26 Mar 2010 |
| Total Posts: 869 |
|
|
| 02 Apr 2013 07:09 PM |
"BrickColor.random().Color"
Nuuuuuu... I've forgotten that D: Need 1Gb memory more pl0x |
|
|
| Report Abuse |
|
|
nairod7
|
  |
| Joined: 26 Mar 2010 |
| Total Posts: 869 |
|
|
| 02 Apr 2013 07:13 PM |
| Need 2Gb... I've forgotten why I didn't wrote that... Because there are less colors with BrickColor.random().Color than Color3.new(math.random(),math.random(),math.random()) |
|
|
| Report Abuse |
|
|