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: Well, I can't make up a function apparently q.q

Previous Thread :: Next Thread 
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
11 Oct 2013 10:40 PM
I'm trying to get a BrickColorValue to change every time a brick changes color. There's no standard function I know of (i.e. OnClick, OnTouch) that does that (if there is, PLEASE let me know), so I tried making my own:

local button = script.Parent

function colorchange (button)
button.BrickColor = Workspace.TempP.Value
end

script.Parent.BrickColor:connect (colorchange)

Yo no se.
I don't know.
Report Abuse
Excellus is not online. Excellus
Joined: 17 Jun 2013
Total Posts: 3939
11 Oct 2013 10:41 PM
Here's a simple example:

function hi()
print("Hi")
script.Parent.Touched:connect(hi)
Report Abuse
1blockhead is not online. 1blockhead
Joined: 26 Aug 2008
Total Posts: 618
11 Oct 2013 10:42 PM
Please restate what you were trying to say? It didn't sound very clear to me.

~ Every time someone copies a game, a scripter dies.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
11 Oct 2013 10:43 PM
Use :Changed()
Report Abuse
Excellus is not online. Excellus
Joined: 17 Jun 2013
Total Posts: 3939
11 Oct 2013 10:43 PM
Sorry read it wrong.
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
11 Oct 2013 10:45 PM
So, here's my exact idea:
Make it so that once I paint a brick using the paintbrush tool, it changes some arbitrary BrickColorValue in Workspace.
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