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

Previous Thread :: Next Thread 
CronGazelle is not online. CronGazelle
Joined: 31 May 2015
Total Posts: 343
25 Jun 2015 05:57 PM
How do I find a players torso at any time?
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
25 Jun 2015 05:58 PM
workspace.CronGazelle.Torso
Report Abuse
CronGazelle is not online. CronGazelle
Joined: 31 May 2015
Total Posts: 343
25 Jun 2015 05:59 PM
But it's going to be any random player.
Report Abuse
CronGazelle is not online. CronGazelle
Joined: 31 May 2015
Total Posts: 343
25 Jun 2015 06:04 PM
bwopbwopbwop
Scripters in a nutshell: dead in 5 seconds
Report Abuse
CronGazelle is not online. CronGazelle
Joined: 31 May 2015
Total Posts: 343
25 Jun 2015 06:09 PM
BWAAWDASWA
Report Abuse
TIZOC44 is not online. TIZOC44
Joined: 03 May 2010
Total Posts: 15
25 Jun 2015 06:12 PM
[randomplayer seleted from game.Players].Character.Torso
Report Abuse
TIZOC44 is not online. TIZOC44
Joined: 03 May 2010
Total Posts: 15
25 Jun 2015 06:13 PM
sht why am i posting on my 2010 account
Report Abuse
SethDusek5 is not online. SethDusek5
Joined: 26 Mar 2011
Total Posts: 2580
25 Jun 2015 06:14 PM
back to new one
Report Abuse
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
25 Jun 2015 06:25 PM
local c = game.Players:GetChildren()
for i = 1, #c do
local p = c[math.random(1, #c)]
local c = game.Workspace:FindFirstChild(p.Name)
local torso = c.Torso
-- code
end
Report Abuse
CronGazelle is not online. CronGazelle
Joined: 31 May 2015
Total Posts: 343
25 Jun 2015 06:40 PM
Ok, thank you. Now I just need to find a way to make a part fly towards the players torso's position.
Report Abuse
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
25 Jun 2015 06:50 PM
Use this, just in case the player's character is loading

local c = game.Players:GetChildren()
for i = 1, #c do
local p = c[math.random(1, #c)]
local c = game.Workspace:FindFirstChild(p.Name)
if c then
local torso = c.Torso
-- code
end
end
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