|
| 27 Jan 2013 02:32 PM |
while true do wait(1) Parent.Part.BrickColor == BrickColor.math.random() end
I made it, Brickcolor is supposed to change every second. Whats the problem? |
|
|
| Report Abuse |
|
|
jewelycat
|
  |
| Joined: 10 Sep 2008 |
| Total Posts: 17345 |
|
|
| 27 Jan 2013 02:33 PM |
Uh... Exactly what it says...
"==" should be just one "=" |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Jan 2013 02:34 PM |
| Workspace.Baseplate.Script:3: '=' expected near '==' |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 02:34 PM |
while true do wait(1) Parent.Part.BrickColor = BrickColor.math.random() end
The single equals is an assignment operator, whereas double equals is a comparative operator. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 02:35 PM |
Umg
while wait(1) do Game.Workspace.Part.BrickColor = BrickColor.random() end |
|
|
| Report Abuse |
|
|
| |
|
TacoBowls
|
  |
| Joined: 02 Mar 2009 |
| Total Posts: 112 |
|
|
| 27 Jan 2013 02:39 PM |
Try this:
while wait(1) do Part.Parent.BrickColor = BrickColor.new(math.random) end
Otherwise, if it isn't Part.Parent....
while wait(1) do Parent.Part.BrickColor = BrickColor.new(math.random) end
I'm pretty sure it would be something like that, and I don't believe you need to put two = signs. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 02:40 PM |
| All these scripts don't work. What the heck!!?? |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 02:41 PM |
while wait(1) do script.Parent.BrickColor = BrickColor.new(math.random) end |
|
|
| Report Abuse |
|
|
TacoBowls
|
  |
| Joined: 02 Mar 2009 |
| Total Posts: 112 |
|
|
| 27 Jan 2013 02:42 PM |
while wait(1) do game.Workspace.BrickNameHere.BrickColor = BrickColor.random() end
Or
while wait(1) do script.Parent.BrickColor = BrickColor.random() end
My bad, ignore my other post. |
|
|
| Report Abuse |
|
|
Xzerizon
|
  |
| Joined: 16 Aug 2011 |
| Total Posts: 2174 |
|
|
| 27 Jan 2013 02:51 PM |
while wait(1) do script.Parent.Part.BrickColor = BrickColor.new(math.random(1, 64) end
Tested, it works just fine.
Ғľ○ωε⌐'ζ бâŋε ▬ Xζε⌐¡ζ○╖ |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 27 Jan 2013 03:02 PM |
| @xzer: That won't work, I doubt you tested it. |
|
|
| Report Abuse |
|
|
gerit99
|
  |
| Joined: 21 Jul 2010 |
| Total Posts: 521 |
|
|
| 27 Jan 2013 03:04 PM |
| I didn't know you can do BrickColor.new(math.random(1,64)) |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 03:08 PM |
... you said Parent.Part.Brickcolor ...
I know this is an extremely basic answer, but try Part.Parent.BrickColor in replacement. |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 27 Jan 2013 03:15 PM |
| @Gerit: It picks a random index of the colours (64 in total), but he forgot a second parenthesis. |
|
|
| Report Abuse |
|
|
Xzerizon
|
  |
| Joined: 16 Aug 2011 |
| Total Posts: 2174 |
|
|
| 27 Jan 2013 08:14 PM |
@TheMyrco
I did test it. However, error fixing is very autonomous to me, and so I forgot to correct the script. Sorry.
Ғľ○ωε⌐'ζ бâŋε ▬ Xζε⌐¡ζ○╖ |
|
|
| Report Abuse |
|
|
TacoBowls
|
  |
| Joined: 02 Mar 2009 |
| Total Posts: 112 |
|
|
| 27 Jan 2013 09:18 PM |
Well.. while wait(1) do game.Workspace.BrickNameHere.BrickColor = BrickColor.random() end
That should work, I tested it as well.. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 09:26 PM |
| Is not 'game' always lowercase? |
|
|
| Report Abuse |
|
|
| |
|
Peaceless
|
  |
| Joined: 24 Dec 2012 |
| Total Posts: 31 |
|
|
| 27 Jan 2013 09:30 PM |
Umg, OP is stupid.
And no, game doesn't have to be lowercase.
game Game workspace Workspace |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
| |
|
|
| 27 Jan 2013 09:35 PM |
BrickColor = BrickColor.new(math.randm(1,64))
Eww
BrickColor = BrickColor.random() |
|
|
| Report Abuse |
|
|
Dodeka
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 1441 |
|
| |
|
TechWorks
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 282 |
|
|
| 27 Jan 2013 10:08 PM |
while true do wait(1) R1 = math.random(0,255) R2 = math.random(0,255) R3 = math.random(0,255)
Parent.Part.BrickColor = BrickColor.new(Color3.new(R1/255,R2/255,R3/255)) end
|
|
|
| Report Abuse |
|
|