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 2 use math.random on humanoids

Previous Thread :: Next Thread 
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
04 Oct 2014 08:04 AM
??
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
04 Oct 2014 08:05 AM
I don't know, perhaps we could use our psychic powers to understand what you mean?

Explain more. What are you trying to do?
Report Abuse
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
04 Oct 2014 08:07 AM
like

the mad murderer

i only know like

random = math.random(1,5)

if random == 1 then..

elseif..
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
04 Oct 2014 08:08 AM
You want math.random to select a random player you mean?
Report Abuse
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
04 Oct 2014 04:06 PM
ye
Report Abuse
Sinblade is not online. Sinblade
Joined: 14 Aug 2010
Total Posts: 2782
04 Oct 2014 04:07 PM
local players = game.Players:GetPlayers()

then get the number and get the player from the table
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
04 Oct 2014 04:10 PM
Plyrs = game:GetService('Players'):GetChildren
Selected = Plyrs[math.random(1, #Plyrs)]

Selected is now a player
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