|
| 06 Apr 2012 11:12 AM |
c=game.Workspace:GetChildren() for i=1,#c do if c[i].className=="Hat" then c[i]:remove() end end
It's a child of the workspace.
It's supposed to either delete a hat from each respawning character, which I didn't make it to, or delete stray hats in the workspace. |
|
|
| Report Abuse |
|
|
|
| 06 Apr 2012 12:18 PM |
c=game.Workspace:GetChildren() for i=1,#c do if c[i].className == "Hat" then c[i]:remove() end end |
|
|
| Report Abuse |
|
|
3lex33
|
  |
| Joined: 08 Oct 2008 |
| Total Posts: 5220 |
|
|
| 06 Apr 2012 12:28 PM |
if c[i].ClassName == "Hat"
Anyway, i heard that a lot of people had rather same problem. Try checking if part have mesh inside it. |
|
|
| Report Abuse |
|
|
breuning
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 4268 |
|
| |
|
| |
|
Catblox
|
  |
| Joined: 23 Apr 2008 |
| Total Posts: 2223 |
|
|
| 06 Apr 2012 07:08 PM |
| Try "Accoutrement" rather than "Hat", and see if that works. Sometimes they get called that. |
|
|
| Report Abuse |
|
|