|
| 18 Jun 2017 01:23 PM |
| how do i detect multiple players in a part/area |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
| |
|
|
| 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
|
  |
| Joined: 15 Aug 2016 |
| Total Posts: 799 |
|
|
| 18 Jun 2017 02:14 PM |
:GetDistanceFromPlayer() I believe
|
|
|
| Report Abuse |
|
|
|
| 18 Jun 2017 02:27 PM |
| mmm that seams like only one person |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|