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 » Club Houses » Off Topic
Home Search
 

Re: How do I make this script show the enemies left?

Previous Thread :: Next Thread 
GammaGeek is not online. GammaGeek
Joined: 10 Aug 2014
Total Posts: 11182
20 Nov 2014 06:58 PM
Scripters forum isn't active.
Report Abuse
GammaGeek is not online. GammaGeek
Joined: 10 Aug 2014
Total Posts: 11182
20 Nov 2014 06:58 PM
Oh stupid me, I forgot the script:

print 'WavetimerGUI script loaded'

game.ReplicatedStorage.Alien.Parent = game.Workspace
game.StarterGui.WaveCounterGUI.Frame.Text = "Martians left:

Report Abuse
XxasianfoodxX is not online. XxasianfoodxX
Joined: 06 Aug 2013
Total Posts: 3050
20 Nov 2014 06:58 PM
if

there.are.enemies.left

then

show.gui.saying.how.many.enemies.are.left

~ If you're reading this, you can read. | +23779 ~
Report Abuse
Snaili is not online. Snaili
Joined: 07 May 2011
Total Posts: 7318
20 Nov 2014 06:58 PM
even if the scripters forum isnt active there are still other ones you can go to
Report Abuse
GammaGeek is not online. GammaGeek
Joined: 10 Aug 2014
Total Posts: 11182
20 Nov 2014 06:59 PM
@asian

I take it you can't script, right?
Report Abuse
screamincows is not online. screamincows
Joined: 09 Mar 2012
Total Posts: 2182
20 Nov 2014 06:59 PM
very funny
Report Abuse
GammaGeek is not online. GammaGeek
Joined: 10 Aug 2014
Total Posts: 11182
20 Nov 2014 07:00 PM
Hooow
Report Abuse
screamincows is not online. screamincows
Joined: 09 Mar 2012
Total Posts: 2182
20 Nov 2014 07:04 PM
id hate to leave you without an answer
but sadly I must
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
20 Nov 2014 07:08 PM
I'm taking this straight from one of my games

function elim(tab, obj)
for i, v in pairs(tab) do
if v == obj then
table.remove(tab, i)
end
end
end

local enemies = {}

local enemy = i:Clone()
enemy:MakeJoints()
enemy.Parent = workspace
table.insert(enemies, enemy)
enemy.Zombie.Died:connect(function()
elim(enemies, enemy)
wait(2)
enemy:Destroy()
end)
#enemies will be the number of enemies at any given time.

Dark nights are unpleasant; Yes, for strangers to travel.
Report Abuse
XxasianfoodxX is not online. XxasianfoodxX
Joined: 06 Aug 2013
Total Posts: 3050
20 Nov 2014 07:15 PM
"I take it you can't script, right?"

ye

~ If you're reading this, you can read. | +23779 ~
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Off Topic
   
 
   
  • 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