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: A color changer system?

Previous Thread :: Next Thread 
CamilleSims is not online. CamilleSims
Joined: 10 Aug 2012
Total Posts: 27
04 Jan 2013 12:50 AM
My friend uses this control board with every color of the rainbow on it, then when they click a color it changes the color of certain bricks in the place, like it changes every wall in the place to pink, then when you press the red button it changes all of the wall to red. I would be interested in learning how to do this if anyone could teach me? Please let me know i'm really desperate! My friend won't teach me. Thanks!
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
04 Jan 2013 01:15 AM
script.Parent.MouseButton1Down:connect(function()
for i,v in pairs(Workspace:GetChildren()) do
if v:IsA("Part") then
v.BrickColor = BrickColor.new(script.Parent.BackgroundColor)
end
end
end)
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
04 Jan 2013 01:20 AM
better yet..

for i,v in pairs(script.Parent:GetChildren()) do
if v.ClassName ~= "Script" then
v.MouseButton1Down:connect(function()
for i,v in pairs(Workspace:GetChildren()) do
if v:IsA("Part") then
v.BrickColor = BrickColor.new(v.BackgroundColor)
end
end
end)
end
end

should work

ScreenGui in StarterGui
Frame in that screen gui
put all your buttons in that frame - each button a diff color
put a script in that frame
paste my script in to that script
Report Abuse
Natedogg188 is not online. Natedogg188
Joined: 14 Apr 2007
Total Posts: 38105
04 Jan 2013 01:21 AM
Azarth's post is legit, look at it.
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
04 Jan 2013 01:24 AM
@nate,

sALT
Report Abuse
CamilleSims is not online. CamilleSims
Joined: 10 Aug 2012
Total Posts: 27
04 Jan 2013 02:28 PM
waaah, but i barely know how to do that.
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