|
| 18 Feb 2012 05:01 AM |
I am just learning to script and I tried to make a disco floor, here is my script.
local S1 = Workspace.Dance.2.Script1 while true do wait(0.5) script.Parent.BrickColor3.new = S1.Parent.Parent.Color1 wait(0.5) script.Parent.BrickColor3.new = S1.Parent.Parent.Color2 end
and here is my game
-workspace (next line) -Dance (Model) (next line) -Color1 (BrickColorValue) -Color2 (BrickColorValue) -2 (Brick) (next line) -Script1
Please help me, I am just learning to script. |
|
|
| Report Abuse |
|
|
|
| 18 Feb 2012 05:02 AM |
I got this error in output, Workspace.Dance.2.Script1:1: malformed number near '.2.Script1' |
|
|
| Report Abuse |
|
|
itunes89
|
  |
| Joined: 19 Jan 2011 |
| Total Posts: 1957 |
|
|
| 18 Feb 2012 05:13 AM |
That is not how BrickColor works
c = BrickColor.Random() script.Parent.BrickColor = c |
|
|
| Report Abuse |
|
|
|
| 18 Feb 2012 05:39 AM |
Try this(i changed the '1' with 'one'):
local S1 = Workspace.Dance.2.Scriptone while true do wait(0.5) script.Parent.BrickColor3.new = S1.Parent.Parent.Color1 wait(0.5) script.Parent.BrickColor3.new = S1.Parent.Parent.Color2 end |
|
|
| Report Abuse |
|
|