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: Script concerning a table

Previous Thread :: Next Thread 
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
14 Aug 2014 02:28 PM
parts = {"Part","Wedge","CornerWedge","Truss","SpawnLocation"}

for a,b in pairs(game.Workspace.Model:GetChildren()) do
if b.Name == parts then
while wait(0.2) do
b.BrickColor = BrickColor:Random()
end
end
end

I tried it, it didn't appear to work?
Is there any errors?
Report Abuse
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
14 Aug 2014 02:40 PM
parts = {"Part","Wedge","CornerWedge","Truss","SpawnLocation"}

for a,b in pairs(game.Workspace.Model:GetChildren()) do
for i,v in pairs(parts) do
if b.Name == v then

while wait(0.2) do
b.BrickColor = BrickColor:Random()
end
end
end end


~Tynexx, The 11 year old
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