xmfs
|
  |
| Joined: 24 Dec 2012 |
| Total Posts: 710 |
|
|
| 24 Aug 2014 09:32 PM |
Does anyone have a script to delete something that is a Decal?
I tried this: if v:IsA("Decal") then v:Remove() end
but it doesnt work, and yes im a newbie scripter.
Mr. Dingleberry never dies. |
|
|
| Report Abuse |
|
|
xmfs
|
  |
| Joined: 24 Dec 2012 |
| Total Posts: 710 |
|
| |
|
cingwar73
|
  |
| Joined: 16 Aug 2009 |
| Total Posts: 358 |
|
|
| 24 Aug 2014 10:20 PM |
if v.ClassName == "Decal" then v:Destroy()
I am assuming that you defined v somewhere else.
If you didnt, and just want to delete all the decals on the un-grouped parts in workspace, you could do
for i,v in pairs(game.Workspace:GetChildren()) do for q,u in pairs(v:GetChildren()) do if u.ClassName == "Decal" then u:Destroy() end end end
|
|
|
| Report Abuse |
|
|
xmfs
|
  |
| Joined: 24 Dec 2012 |
| Total Posts: 710 |
|
| |
|