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 » Scripting Helpers
Home Search
 

Re: Method help

Previous Thread :: Next Thread 
ArbiterOfDeath is not online. ArbiterOfDeath
Joined: 20 Jun 2011
Total Posts: 1458
29 Feb 2012 05:51 PM
If I run the below code, I get a message in output saying
"[...].Screen:7: ')' expected near '[' ".
Any clues how to fix this? I have already tried a lot.

Line 7:
-------------------------------------
function pixel[x][y]:To(color) pixel[x][y][Object.BrickColor] = BrickColor.new(color) end
-------------------------------------
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
29 Feb 2012 05:52 PM
That not Lua, I don't think.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
29 Feb 2012 05:59 PM
It is Lua. Reason you don't understand it is because it's not your code and it's only a function.

"Bro five! Wear this to let everyone know you think they deserve a high five."
Report Abuse
ArbiterOfDeath is not online. ArbiterOfDeath
Joined: 20 Jun 2011
Total Posts: 1458
29 Feb 2012 06:08 PM
I'm not loooking for understanding, but rather what is wrong with the syntax. x and y are variables, Object.BrickColor refurres to a indexed part. All that is fine, there is only an error in the syntax. I have indexed using the [] before, it is the only way to do so I know of with variables. It only comes to an error on this method (the only method).
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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