generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: My Script Won't Work and I Can't Figure Out Why

Previous Thread :: Next Thread 
Awesome7734 is not online. Awesome7734
Joined: 04 Apr 2011
Total Posts: 125
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 is not online. 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 is not online. 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 is not online. Jaccob
Joined: 19 Oct 2008
Total Posts: 986
04 Jul 2012 08:19 AM
This belongs in Scripting Helpers.
Report Abuse
Causticity is not online. Causticity
Joined: 11 Jun 2012
Total Posts: 530
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
Awesome7734 is not online. Awesome7734
Joined: 04 Apr 2011
Total Posts: 125
04 Jul 2012 08:47 AM
Thanks! I'll go change it now. :D
Report Abuse
Causticity is not online. Causticity
Joined: 11 Jun 2012
Total Posts: 530
04 Jul 2012 08:49 AM
Ok
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image