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 » Scripting Helpers
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
25 Aug 2011 07:32 PM
[ Content Deleted ]
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
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 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
25 Aug 2011 08:05 PM
[ Content Deleted ]
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
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 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
25 Aug 2011 08:24 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
25 Aug 2011 09:02 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
25 Aug 2011 09:48 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
25 Aug 2011 10:07 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
26 Aug 2011 03:53 PM
[ Content Deleted ]
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
26 Aug 2011 04:23 PM
EITHER WAY IT WILL REMOVE IT ALL! Make it search for something more specific...
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
26 Aug 2011 04:27 PM
[ Content Deleted ]
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
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 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
26 Aug 2011 05:36 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
26 Aug 2011 06:24 PM
[ Content Deleted ]
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
26 Aug 2011 06:51 PM
I was giving an example...
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
26 Aug 2011 07:16 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
26 Aug 2011 07:54 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
26 Aug 2011 08:15 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
26 Aug 2011 08:32 PM
[ Content Deleted ]
Report Abuse
Luc599345 is not online. 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 is not online. 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 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
26 Aug 2011 10:12 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
26 Aug 2011 11:08 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
26 Aug 2011 11:17 PM
[ Content Deleted ]
Report Abuse
donut222 is not online. donut222
Joined: 09 Jun 2009
Total Posts: 1837
27 Aug 2011 07:34 AM
[ Content Deleted ]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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