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: Help please

Previous Thread :: Next Thread 
brayden99 is not online. 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 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
07 Jan 2012 05:49 PM
Why wont this work?
Report Abuse
ggfunny1234 is not online. ggfunny1234
Joined: 09 Jul 2010
Total Posts: 3432
07 Jan 2012 05:54 PM
For one, :remove() is deprecated. Use :Destroy().
Report Abuse
brayden99 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
07 Jan 2012 05:55 PM
And I forgot the wait() lol
Report Abuse
Chronok is not online. 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 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
07 Jan 2012 06:08 PM
Thank you!
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