Autreus
|
  |
| Joined: 27 Feb 2015 |
| Total Posts: 290 |
|
|
| 15 Oct 2016 07:28 AM |
how do i make a script that chooses a random color from Really red, Really blue, Lime green and Black?
Dominus Autreus |
|
|
| Report Abuse |
|
|
Autreus
|
  |
| Joined: 27 Feb 2015 |
| Total Posts: 290 |
|
| |
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 15 Oct 2016 08:02 AM |
put em in a table and choose a random thing from that table.
|
|
|
| Report Abuse |
|
|
JoshRBX
|
  |
| Joined: 19 May 2012 |
| Total Posts: 8778 |
|
|
| 15 Oct 2016 08:08 AM |
colours={"Really red","Really blue","Lime green","Black"} math.randomseed(tick()) while true do wait(1) colourChosen = colours[math.random(#colours)] end
|
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 15 Oct 2016 08:28 AM |
You'd probably want the values in the table to be actual brickcolors though, that way you're not creating a new brickcolor value every time it chooses one. More efficient
|
|
|
| Report Abuse |
|
|