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: How to change brick colors w/ scripts?

Previous Thread :: Next Thread 
Zootopia is not online. Zootopia
Joined: 29 Apr 2009
Total Posts: 1383
20 Jan 2014 03:43 AM
function onTouched(part)

script.Parent.____ = __
wait(0.5)
script.Parent.____ = __
wait()

end

script.Parent.Touched:connect(onTouched)



The ____s are where I need help. The first blank is what the name of the color property should be. The second blank is the integer (I don't know if I need to use example: "Really Red" or 24)
Report Abuse
Zootopia is not online. Zootopia
Joined: 29 Apr 2009
Total Posts: 1383
20 Jan 2014 03:44 AM
Also, if you could help, i'd actually prefer if you told me the integers for Institutional White and Really Red.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
20 Jan 2014 03:51 AM
game.Workspace.Part.Touched:connect(function(onTouched)
p = game.Workspace.Part
if p:FindFirstChild("Humanoid") ~= nil then
p.BrickColor = BrickColor.new("BrickColor1 Here")
wait(.5)
p.BrickColor = BrickColor.new("BrickColor2 Here")
end end)
Report Abuse
SecondaryZero is not online. SecondaryZero
Joined: 22 Nov 2013
Total Posts: 162
20 Jan 2014 04:03 AM
function run()

a = script.Parent
a.BrickColor = BrickColor3.new("Really red")
end
script.Parent.Touched:connect(run)
Report Abuse
SecondaryZero is not online. SecondaryZero
Joined: 22 Nov 2013
Total Posts: 162
20 Jan 2014 04:07 AM
Acually there no 3 my bad
function run()
a = script.Parent
a.BrickColor = BrickColor.new("Really red")
end
script.Parent.Touched:connect(run)
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