|
| 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
|
  |
| 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 |
|
|
| |
|
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 |
|
|