brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 07 Jan 2012 05:49 PM |
local Guis = {"Ammo_Disp", "HealthGUI", "UnBlockPlayer", "BlockPlayer", "GermanClassGui", "RussianClassGui", "UnBlockPlayer"} while true do if script.Parent:FindFirstChild(Guis) ~= nil then else script:Remove() end end
|
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
| |
|
|
| 07 Jan 2012 05:54 PM |
| For one, :remove() is deprecated. Use :Destroy(). |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 07 Jan 2012 05:55 PM |
| And I forgot the wait() lol |
|
|
| Report Abuse |
|
|
Chronok
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 402 |
|
|
| 07 Jan 2012 06:04 PM |
local Guis = {"Ammo_Disp", "HealthGUI", "UnBlockPlayer", "BlockPlayer", "GermanClassGui", "RussianClassGui", "UnBlockPlayer"} while wait() do for index, value in pairs(Guis) do if script.Parent:FindFirstChild(value) then -- Your code goes here. You can;t have an else statement with no code after the if statement. else script:Destroy() end end end
{ ["Chronok"] = "Intermediate scripter/programmer." }
|
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
| |
|