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: detecting players

Previous Thread :: Next Thread 
kikigolddragon is not online. kikigolddragon
Joined: 13 Feb 2013
Total Posts: 107
18 Jun 2017 01:23 PM
how do i detect multiple players in a part/area
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jun 2017 01:26 PM
######################################## ################################################### Then you could check to see if the part is from a character and go from there
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
18 Jun 2017 01:27 PM
Region3 and FindPartsInRegion3


Not sure why the wiki links got tagged.
Report Abuse
kikigolddragon is not online. kikigolddragon
Joined: 13 Feb 2013
Total Posts: 107
18 Jun 2017 01:27 PM
THE # TAGS ?!?!?!?!?!
Report Abuse
kikigolddragon is not online. kikigolddragon
Joined: 13 Feb 2013
Total Posts: 107
18 Jun 2017 01:45 PM
didn't work the way i wanted i try some stuff but it didn't work still open for ideas
Report Abuse
ParaText is not online. ParaText
Joined: 15 Aug 2016
Total Posts: 799
18 Jun 2017 02:14 PM
:GetDistanceFromPlayer() I believe


Report Abuse
kikigolddragon is not online. kikigolddragon
Joined: 13 Feb 2013
Total Posts: 107
18 Jun 2017 02:27 PM
mmm that seams like only one person
Report Abuse
FlamingGamez is not online. FlamingGamez
Joined: 22 Jan 2015
Total Posts: 354
18 Jun 2017 02:47 PM
Part = script.Parent -- Scripts parent is the block
Range = 25 -- Range from block

while wait() do
if (Part.Position-v.Character.Torso.Position).Magnitude) < Range then
-- within the range
else
-- not in range
end
end
Report Abuse
FlamingGamez is not online. FlamingGamez
Joined: 22 Jan 2015
Total Posts: 354
18 Jun 2017 02:47 PM
might work
Report Abuse
FlamingGamez is not online. FlamingGamez
Joined: 22 Jan 2015
Total Posts: 354
18 Jun 2017 02:51 PM
OOps my bad

Part = script.Parent -- Scripts parent is the block
Range = 25 -- Range from block

while wait() do
for i,v in pairs(game.Players:GetChildren()) do
if (Part.Position-v.Character.Torso.Position).Magnitude) < Range then
-- within the range
else
-- not in range
end
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