aase69
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 3794 |
|
|
| 02 Jan 2010 01:50 PM |
there is something wrong with this script, i just dont know what :S
function PartyByAase69()
while true do
local Party = game.Workspace:FindFirstChild("Brick") if (Party ~= nil) then Party.BrickColor = BrickColor.new (math.random(), math.random(), math.random()) Party.Name = "Partied" wait(1) end end
PartyByAase69() |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 02 Jan 2010 01:54 PM |
| The BrickColor.new function expects ONE argument. |
|
|
| Report Abuse |
|
|
aase69
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 3794 |
|
|
| 02 Jan 2010 01:57 PM |
didnt help :S
so i need only one math.random, and not three? |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Jan 2010 01:59 PM |
| Party.Color3 = Color3.new (math.random(), math.random(), math.random()) |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 02 Jan 2010 01:59 PM |
| Well, you aren't making a multicolor brick, right? |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 02 Jan 2010 01:59 PM |
@Present:
It's Party.Color. Remember now? Just edit your RMD to supply that. |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2010 02:00 PM |
| Party.Color = Color3.new (math.random(), math.random(), math.random()) |
|
|
| Report Abuse |
|
|
aase69
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 3794 |
|
|
| 02 Jan 2010 02:02 PM |
still getting the same message(s):
end expected near eof (to close either function or while. cause i get function with two end's, and while with one end)
|
|
|
| Report Abuse |
|
|
aase69
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 3794 |
|
|
| 02 Jan 2010 02:03 PM |
| im trying to make a script that makes every brick go like a dance floor... so you dont need to take a dancefloor script in every bricks |
|
|
| Report Abuse |
|
|
Gavin9788
|
  |
| Joined: 24 Nov 2010 |
| Total Posts: 1389 |
|
|
| 02 Jan 2010 02:06 PM |
function PartyByAase69()
while true do
local Party = game.Workspace:FindFirstChild("Brick") if (Party ~= nil) then Party.BrickColor = BrickColor.new (math.random(), math.random(), math.random()) Party.Name = "Partied" wait(1) end end end
PartyByAase69() |
|
|
| Report Abuse |
|
|
Gavin9788
|
  |
| Joined: 24 Nov 2010 |
| Total Posts: 1389 |
|
|
| 02 Jan 2010 02:07 PM |
| Still wont work though, you would have to fix the color. |
|
|
| Report Abuse |
|
|
aase69
|
  |
| Joined: 04 Apr 2008 |
| Total Posts: 3794 |
|
|
| 02 Jan 2010 02:23 PM |
| now thats not the real problem... my place is freezing up when running it with this script =( |
|
|
| Report Abuse |
|
|