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: How to check for survivers?

Previous Thread :: Next Thread 
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
22 Oct 2011 08:12 AM
I wish to use tables to print who has survived


Something like

alive = {}

--Stuff for checking... If you can help, please help so it will place the survivers into a VARIABLE, so I can do this:

local msg = Instance.New("Message",Workspace)

msg.Text = "Survivers :"..i"" --i is where I want the survivers stored. Also, i'm going to add this to a map changer I made, just so you know why I want it :3
Report Abuse
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
22 Oct 2011 08:17 AM
Bump?
FLOODCHECK
F L O O D C H E C K
mp
mp
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
22 Oct 2011 08:47 AM
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(char)
if char.Humanoid.Health >=.1 then
--code
end
end)
end)


I just woke up. I have a red eye AND IT'S NOT PINK but you know..
Report Abuse
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
22 Oct 2011 03:46 PM
Not what I want....
Report Abuse
NBCKing is not online. NBCKing
Joined: 09 Oct 2011
Total Posts: 133
22 Oct 2011 03:59 PM
Survivers? its spelt Survivor
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
22 Oct 2011 04:27 PM
Hmm..

survivors = {}

function gather()
for _,v in pairs(game.Players:GetPlayers()) do
table.insert(survivors,v.Name)
end
end



Now, there are a few different ways to remove the names..
Report Abuse
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
22 Oct 2011 05:05 PM
So how would I make it put a message into the workspace that says a list?

local time = 5
local msg = instance.New("Message",Workspace)
msg.Text = "List of survivors:"...v...""
wait(time)
msg.Parent = Lighting


?????
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