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 » Scripters
Home Search
 

Re: I need assistance please.

Previous Thread :: Next Thread 
JustScary is not online. JustScary
Joined: 03 Sep 2015
Total Posts: 1765
18 Jan 2016 06:21 PM
So, in my game players are teleported to an arena to fight with swords.

But I'm lacking something pretty big.

When everyone dies, the game keeps playing for the rest of the time.

So how do you make it that if only 1 person is alive, or 0 people are alive, then the game breaks the script?

while true do
break
end

^ like that break only with the if, then statement to make it so that if one or 0 people are alive, it breaks?

Thanks for helping
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
18 Jan 2016 06:23 PM
loop if players <= 1 then



http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$216 Tx387 (づ ゚ ³ ゚)づ
Report Abuse
JustScary is not online. JustScary
Joined: 03 Sep 2015
Total Posts: 1765
18 Jan 2016 06:26 PM
^ eh... Idk if that'd work
Report Abuse
IllegallyBlind is not online. IllegallyBlind
Joined: 07 Nov 2010
Total Posts: 1691
18 Jan 2016 06:27 PM
repeat wait() until #players == 1 or #players == 0


i make u math.sqrt()
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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