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 » Scripters
Home Search
 

Re: [Help Req.] Getting multiple children

Previous Thread :: Next Thread 
GlideMcAreo is not online. GlideMcAreo
Joined: 03 Oct 2011
Total Posts: 89
05 Jun 2015 01:46 AM
How would I go about getting a bunch of parts from a model and removing say a decal from each and every part?
Report Abuse
harieo is not online. harieo
Joined: 29 Jan 2013
Total Posts: 67
05 Jun 2015 02:06 AM
I like a good scripting challenge (even though this does look pretty easy).
You need to use the 'in pairs' method.
Let me show you:
for _, object in pairs (game.Workspace:GetChildren()) do
if object.Name == "RedClassicSword1" then
object:Destroy()
end
end

I'll run through the method. It basically scans all objects in the targeted area (Workspace in this instance) and if it has a certain name then DESTROY IT!
This one was made to destroy some swords in workspace if found.
If you need any help modifying it to your needs, message me and I will give you a more detailed run-through.

Good luck,
Harieo
Report Abuse
GlideMcAreo is not online. GlideMcAreo
Joined: 03 Oct 2011
Total Posts: 89
05 Jun 2015 02:07 AM
ty
Report Abuse
harieo is not online. harieo
Joined: 29 Jan 2013
Total Posts: 67
05 Jun 2015 02:08 AM
Never a problem, I love a good script to wake me up in the morning :)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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