|
| 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 |
|
|
| |
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 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 |
|
|