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
 

Remove Gui isn't working?

Previous Thread :: Next Thread 
bluebird1287 is not online. bluebird1287
Joined: 16 Jun 2011
Total Posts: 4202
15 Jul 2014 11:24 PM
for i,v in pairs(game.Players:GetChildren()) do
game.Players.PlayerGui.Hint2:remove()
end


I probably know why, game.Players.(Username).PlayerGui.Hint2:remove()
might be the solution, but I don't remember how to do username stuff like that.

Help out?
Report Abuse
bluebird1287 is not online. bluebird1287
Joined: 16 Jun 2011
Total Posts: 4202
15 Jul 2014 11:26 PM
bump1
Report Abuse
FertileTurtle is not online. FertileTurtle
Joined: 04 Dec 2012
Total Posts: 1414
15 Jul 2014 11:26 PM
for i,v in pairs(game.Players:GetChildren()) do
v.PlayerGui.Hint2:remove()
end
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
15 Jul 2014 11:26 PM
v is the player..

so

v:WaitForChild("PlayerGui").Hint2:Destroy()
Report Abuse
bluebird1287 is not online. bluebird1287
Joined: 16 Jun 2011
Total Posts: 4202
15 Jul 2014 11:30 PM
Both didn't work?
Report Abuse
BalisticMissile is online. BalisticMissile
Joined: 05 Mar 2009
Total Posts: 282
15 Jul 2014 11:47 PM
g = game.Players:GetChildren()
for i = 1, #g do
if g[i].PlayerGui:findFirstChild("Hint2") then
g[i].PlayerGui.Hint2:Destroy()
end end


This worked fine for me. If it doesn't then you're not giving us enough information.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
16 Jul 2014 11:08 AM
RemoveGuis = function()
for i,v in pairs(game.Players:GetChildren()) do
ypcall(function()
v:FindFirstChild("Hint2",true):Destroy()
end)
end
end)
while wait(360) do
RemoveGuis()
end
Report Abuse
bluebird1287 is not online. bluebird1287
Joined: 16 Jun 2011
Total Posts: 4202
16 Jul 2014 12:34 PM
Thanks for the help@all.
Much appreciated.
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