donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
|
| 25 Aug 2011 07:46 PM |
| You're declaring c and/or x as ALL the children in the PlayerGui. So therefore when coding: c:remove() it removes EVERY single thing in the player's PlayerGui. |
|
|
| Report Abuse |
|
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
|
| 25 Aug 2011 08:06 PM |
| No, sorry. You're getting all children of the PlayerGui. So therefore removing it will remove everything in the PlayerGui. |
|
|
| Report Abuse |
|
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
|
| 26 Aug 2011 04:23 PM |
| EITHER WAY IT WILL REMOVE IT ALL! Make it search for something more specific... |
|
|
| Report Abuse |
|
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
|
| 26 Aug 2011 04:28 PM |
No, make it use more variables, you know: cc = c:findFirstChild("TextButton") if cc then if cc.Text == "Text..." then -- blah blah blah... |
|
|
| Report Abuse |
|
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
|
| 26 Aug 2011 06:51 PM |
| I was giving an example... |
|
|
| Report Abuse |
|
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
Luc599345
|
  |
| Joined: 25 Jul 2008 |
| Total Posts: 1169 |
|
|
| 26 Aug 2011 08:44 PM |
for i,v in pairs(game.Players:GetChildren()) do Names = {} for _,c in pairs(v.PlayerGui:GetChildren()) do if Names[c] then Names[c] = nil c:Remove() end Names[c] = 0 end end |
|
|
| Report Abuse |
|
|
Luc599345
|
  |
| Joined: 25 Jul 2008 |
| Total Posts: 1169 |
|
|
| 26 Aug 2011 08:45 PM |
for i,v in pairs(game.Players:GetChildren()) do Names = {} for _,c in pairs(v.PlayerGui:GetChildren()) do if Names[c] then Names[c.Name] = nil c:Remove() end Names[c.Name] = 0 end end
Sorry, there was an error in the other one. |
|
|
| Report Abuse |
|
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|