|
| 30 Mar 2015 07:15 PM |
If the player is 10 studs away from the torso do something..
How? |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2015 07:16 PM |
| if Player:DistanceFromCharacter(PART.Position) <= 9001 then --[[dothis]] end |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
| |
|
|
| 30 Mar 2015 07:20 PM |
| Whats the difference between the both? |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2015 07:21 PM |
PART.Position
is this where I define like plr.Character.Torso.Position? |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2015 07:23 PM |
First: Mine is easier, but it only works if you're trying to figure out a player's distance from something.
Second: Yes. It can be any Vector3 value |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2015 07:24 PM |
See this bit here:
local plr = game.Players.LocalPlayer if plr:DistanceFromCharacter(plr.Character.Torso.Position) <= 20 then
Where would I define what its looking for? because if I don't wont it just go for any brick? also.. Is it possible to return what it has found so I can also edit the thing it has located? |
|
|
| Report Abuse |
|
|