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: Need Help with scripting

Previous Thread :: Next Thread 
Buckeye793 is not online. Buckeye793
Joined: 14 Dec 2009
Total Posts: 1027
03 Mar 2012 02:18 PM
Well you can obviously guess that I am new to scripting because I can't figure this out. I am trying to make a brick change colors continuously and this error keeps pooping up in my output.

15:13:59 - Workspace.Script:4: '=' expected near 'then'

Here is my script.

while true do
wait(0.1)
game.Workspace.Red1.BrickColor=Bright red
then do
game.Workspace.Red1.BrickColor=Dark stone grey
end

I am not sure how to fix it so can someone please help me.
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
03 Mar 2012 02:58 PM
You forgot to delete system32. It's a common mistake.
Report Abuse
AntiProton is not online. AntiProton
Joined: 16 Jan 2011
Total Posts: 87
03 Mar 2012 03:06 PM
You forget to leave the forum MeBilly as well, It's a common mistake like you mentioned.
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
03 Mar 2012 03:13 PM
You forgot that I don't care what you say. That's also a common mistake.
Report Abuse
AntiProton is not online. AntiProton
Joined: 16 Jan 2011
Total Posts: 87
03 Mar 2012 03:22 PM
Anyways, next time theres a forum called Scripting Helpers. Scripters for advanced users only, but heres the fixed script.

Script ---



Red = Workspace.Red1 -- Instead of constantly repeating game.Workspace I set it to a variable

while true do
Red.BrickColor = BrickColor.new(21) -- In order to use brickcolors, there are color codes you can't just name a color
wait(0.1)
Red.BrickColor = BrickColor.new(199)
wait(0.1)
end


Report Abuse
AntiProton is not online. AntiProton
Joined: 16 Jan 2011
Total Posts: 87
03 Mar 2012 03:24 PM
@MeBilly

You dont care what I say, but you happen to reply. Oh well, no one cares about what you say anymore. No one is wanting you to stay here anymore, after all you sit at home looking at threads then you post replies to those who makes mistakes. Just Get Out bro, the thought of you contiune to waste your life, to make others lifes harder is plain pathetic.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
03 Mar 2012 03:25 PM
[ Content Deleted ]
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
03 Mar 2012 03:25 PM
Lol your just jelly that I eat more noobs than you.
Report Abuse
AntiProton is not online. AntiProton
Joined: 16 Jan 2011
Total Posts: 87
03 Mar 2012 03:28 PM
D:

I never said you couldn't, lawlz.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
03 Mar 2012 03:28 PM
[ Content Deleted ]
Report Abuse
AntiProton is not online. AntiProton
Joined: 16 Jan 2011
Total Posts: 87
03 Mar 2012 03:29 PM
Anyways my last post was to @Oysi

"Lol your just jelly that I eat more noobs than you."

Eat more noobs? Is that your childish game?
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
03 Mar 2012 03:29 PM
@Oysi

I knew that was why I was failing math!
Report Abuse
Buckeye793 is not online. Buckeye793
Joined: 14 Dec 2009
Total Posts: 1027
03 Mar 2012 07:04 PM
Thanks for the help. I suck at scripting >.>
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