|
| 08 Dec 2013 11:42 AM |
Im trying to make a script to that when x is less than 15 studs from y and x is more then 2 studs from the closest y then.
I just need it for the first part |
|
|
| Report Abuse |
|
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
| |
|
|
| 08 Dec 2013 12:19 PM |
| The script at the last part doesnt even work even after editing it to correct names. |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Dec 2013 01:14 PM |
To find distance, you need 2 vector3 values. E.g.
local pos1=Vector3.new(0,50,0) local pos2=Vector3.new(0,0,0)
local magnitude=(pos1-pos2).magnitude print(magnitude) |
|
|
| Report Abuse |
|
|