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
 

Re: Geting rid of a gui

Previous Thread :: Next Thread 
frontierchaz is not online. frontierchaz
Joined: 22 Jun 2008
Total Posts: 348
15 Oct 2011 12:37 PM
Ok so i got this script that when touched, it will give you a gui.
What i want to know is that does anyone know how to make the script also take away the GUI if you already have it?
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
15 Oct 2011 12:38 PM
Gui:Remove()
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
15 Oct 2011 12:39 PM
[ Content Deleted ]
Report Abuse
frontierchaz is not online. frontierchaz
Joined: 22 Jun 2008
Total Posts: 348
15 Oct 2011 12:47 PM
btw what does nil mean?
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
15 Oct 2011 12:49 PM
nil means like non-existent or nothing so for example

if game.Workspace:findFirstChild("Base")~=nil then
print("Found.")
else
print("There is no base.")
end
Report Abuse
GeneralSQ is not online. GeneralSQ
Joined: 17 Apr 2011
Total Posts: 81
15 Oct 2011 01:33 PM
nil means like non-existent or nothing so for example

if game.Workspace:findFirstChild("Base")~=nil then
print("Found.")
else
print("There is no base.")
end
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
15 Oct 2011 01:36 PM
[ Content Deleted ]
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
15 Oct 2011 01:37 PM
script.Parent.Touched:connect(function(p)
l=p.Parent
if l["Humanoid"] then
if not l.PlayerGui[gui] then return end
l.PlayerGui[gui]:Remove()
end
end)
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