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
 

More than 1 players.

Previous Thread :: Next Thread 
Lem0nzz is not online. Lem0nzz
Joined: 18 Jul 2011
Total Posts: 926
17 Feb 2014 05:05 AM
I know how you would remove 1 players, anything. Like torso, Humanoid, change walkspeed. But I don't understand how you can't tell it to get all players to die, or change walkspeed, etc.. Can anyone tell me how you would type that??
Report Abuse
Lem0nzz is not online. Lem0nzz
Joined: 18 Jul 2011
Total Posts: 926
17 Feb 2014 05:10 AM
Bump..
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
17 Feb 2014 05:12 AM
for i,v in pairs(game.Players:GetChildren())do -- This is how you get all of the players, or you could use PlayerAdded, and some other events that I prob don't remember,

ex:

for i,v in pairs(game.Players:GetChildren())do
-- you need to include Character after the Player, v.Character, to find what player, because 'for i,v in pairs' finds 'all' objects in the game or workspace
v.Character:BreakJoints() -- kills, v.Character.Humanoid.WalkSpeed=0 -- frozen
end -- end the event
Report Abuse
Lem0nzz is not online. Lem0nzz
Joined: 18 Jul 2011
Total Posts: 926
17 Feb 2014 05:15 AM
Thanks that helped alot!
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
17 Feb 2014 05:18 AM
http://wiki.roblox.com/index.php/PlayerAdded_(Event)
http://wiki.roblox.com/index.php/CharacterAdded_(Event)
http://wiki.roblox.com/index.php?title=ChildAdded_(Event)
http://wiki.roblox.com/index.php/Conditional_statement
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