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 make all the parts in a model...

Previous Thread :: Next Thread 
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
28 Jul 2012 05:30 PM
Rainbow/Disco.

Using: while wait() do game.Workspace.Part.BrickColor = BrickColor.random() end

Using GetChildren()?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Jul 2012 05:31 PM
put in model

for k, v in pairs(script.Parent:GetChildren()) do
if v:IsA("BasePart") then
v.BrickColor = BrickColor.random()
end
end

† KMXD † - Evil Duck Overlord, bent on world domination.
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
28 Jul 2012 05:35 PM
Thanks again :)
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Jul 2012 05:36 PM
You're welcome. :)

† KMXD † - Evil Duck Overlord, bent on world domination.
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
28 Jul 2012 05:38 PM
There was one problem. It would change into random color, but stay that color. Any way to keep it changing?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Jul 2012 05:44 PM
while wait(0.5) do
for k, v in pa2irs(script.Parent:GetChildren()) do
if v:IsA("BasePart") then
v.BrickColor = BrickColor.random()
end
end
end

† KMXD † - Evil Duck Overlord, bent on world domination.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Jul 2012 05:44 PM
while wait(0.5) do
for k, v in pairs(script.Parent:GetChildren()) do
if v:IsA("BasePart") then
v.BrickColor = BrickColor.random()
end
end
end

whoops, random "2"

† KMXD † - Evil Duck Overlord, bent on world domination.
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
28 Jul 2012 05:46 PM
Yea I was like. dafuq?
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
28 Jul 2012 05:47 PM
Oyes, your awesome. :D
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
28 Jul 2012 05:48 PM
I know right, spread the word of me. Lol, jk.

† KMXD † - Evil Duck Overlord, bent on world domination.
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
28 Jul 2012 05:49 PM
I'll tell my friend about you when he needs help. :3 We are working on stuff and just trying to figure out different things about scripting.
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