|
| 04 Jul 2012 08:00 AM |
Alright, so I made this script to try to make a brick change colors, but it won't work. I've tried making small tweaks to it, but to no avail. If somebody could point out what I did wrong, I'd be extremely grateful. It's probably just a small, easily noticeable error to more advanced scripters, but I'm not exactly experienced in the field, so don't make fun of me for not noticing it. Thanks.
Here's the script:
while true do
script.Parent.BrickColor = BrickColor.("White") wait(0.05) script.Parent.BrickColor = BrickColor.("Toothpaste") wait(0.05) script.Parent.BrickColor = BrickColor.("Alder") wait(0.05) script.Parent.BrickColor = BrickColor.("Deep Orange") wait(0.05) script.Parent.BrickColor = BrickColor.("New Yeller") wait(0.05) script.Parent.BrickColor = BrickColor.("Really Red") wait(0.05) script.Parent.BrickColor = BrickColor.("Lime Green") wait(0.05) script.Parent.BrickColor = BrickColor.("Hot Pink") wait(0.05) end
end |
|
|
| Report Abuse |
|
|
8SunTzu8
|
  |
| Joined: 30 Sep 2011 |
| Total Posts: 8199 |
|
|
| 04 Jul 2012 08:10 AM |
script.Parent.BrickColor = BrickColor.new("White")
Fix all of those to look like mine, and it should work, if everything else is in place.
In the future, go to the Scripting Helpers forum, and you'll be treated a lot nicer there.
This is not the forum for this, and you could have looked this up on the wiki or used the output to detect errors.
"APN Forever, Long Live Its Eternal Glory!" |
|
|
| Report Abuse |
|
|
8SunTzu8
|
  |
| Joined: 30 Sep 2011 |
| Total Posts: 8199 |
|
|
| 04 Jul 2012 08:15 AM |
I also believe you have one too many "end"s. This could cause a problem. Unless this is in a function of some sort, I don't think you need it.
Just remove one of those. (I'm not sure how the rest of your script is like, but with just this small bit, you have 1 too many).
"APN Forever, Long Live Its Eternal Glory!" |
|
|
| Report Abuse |
|
|
Jaccob
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 986 |
|
|
| 04 Jul 2012 08:19 AM |
| This belongs in Scripting Helpers. |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2012 08:41 AM |
while true do
script.Parent.BrickColor = BrickColor.new("White") wait(0.05) script.Parent.BrickColor = BrickColor.new("Toothpaste") wait(0.05) script.Parent.BrickColor = BrickColor.new("Alder") wait(0.05) script.Parent.BrickColor = BrickColor.new("Deep Orange") wait(0.05) script.Parent.BrickColor = BrickColor.new("New Yeller") wait(0.05) script.Parent.BrickColor = BrickColor.new("Really Red") wait(0.05) script.Parent.BrickColor = BrickColor.new("Lime Green") wait(0.05) script.Parent.BrickColor = BrickColor.new("Hot Pink") wait(0.05) end
|
|
|
| Report Abuse |
|
|
|
| 04 Jul 2012 08:47 AM |
| Thanks! I'll go change it now. :D |
|
|
| Report Abuse |
|
|
| |
|