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
 

Color Changing

Previous Thread :: Next Thread 
jimmybolt77 is not online. jimmybolt77
Joined: 06 Jul 2008
Total Posts: 292
15 Nov 2011 03:19 PM
How can I make it so that the bricks are lime green and Bright red? Right now, I set it to random colors.


places = {workspace}
color = "Lime green"

m = Instance.new("Model",workspace)
m.Name = "Holograms"

function Hologramize(obj)
wait()
for i,v in pairs(obj:GetChildren()) do
if game.Players:GetPlayerFromCharacter(v) or game.Players:GetPlayerFromCharacter(v.Parent) then return end
if v:IsA("Part") then
v.Transparency = 1
s = Instance.new("SelectionBox",m)
s.Adornee = v
s.Color = BrickColor.random()

else
Hologramize(v)
end
end
end

for _,b in pairs(places) do
Hologramize(b)
end
Report Abuse
07lchris is not online. 07lchris
Joined: 28 Feb 2010
Total Posts: 1603
15 Nov 2011 03:21 PM
s.Color = BrickColor.new('Lime green')
Report Abuse
jimmybolt77 is not online. jimmybolt77
Joined: 06 Jul 2008
Total Posts: 292
15 Nov 2011 03:36 PM
What about Bright red?
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
15 Nov 2011 03:36 PM
Change lime green to bright red on his line. I don't think it is that difficult to figure out.
Report Abuse
jimmybolt77 is not online. jimmybolt77
Joined: 06 Jul 2008
Total Posts: 292
15 Nov 2011 03:44 PM
No, to make it have 2 TWO COLORS NOT ONE.
Report Abuse
Scriptishish is not online. Scriptishish
Joined: 16 Oct 2007
Total Posts: 1231
15 Nov 2011 03:47 PM
Bricks do not have multiple color properties, if that is what you're after.
Just one BrickColor
Report Abuse
jimmybolt77 is not online. jimmybolt77
Joined: 06 Jul 2008
Total Posts: 292
15 Nov 2011 04:15 PM
No, like one Selection box is bright red and another is Lime green, so it picks two colors instead of one.
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