AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 05 Sep 2016 01:04 PM |
Just trying to find a random position around the torso, x studs away, in a circle.
...Torso.Position * CFrame.new(0, 0, 2) * CFrame.Angles(0, math.pi, 0)
Help |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2016 01:19 PM |
local x = RADIUSHERE Torso.Position * CFrame.Angles(0, math.random() * 2 * math.pi, 0) * CFrame.new(0, 0, x) |
|
|
| Report Abuse |
|
|
AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 05 Sep 2016 01:47 PM |
attempt to multiply a Vector3 with an incompatible value type or nil
Player.Character.Torso.Position * CFrame.Angles(0, math.random() * 2 * math.pi, 0) * CFrame.new(0, 0, 2) |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2016 02:10 PM |
| should be Torso.CFrame not .Position |
|
|
| Report Abuse |
|
|
AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 05 Sep 2016 02:13 PM |
| Then if the torso had been pushed on its side it would position stuff in the ground |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 05 Sep 2016 02:21 PM |
You want a circle or a sphere?
|
|
|
| Report Abuse |
|
|
|
| 05 Sep 2016 02:22 PM |
| If you don't want that to happen then use CFrame.new(Torso.Position) |
|
|
| Report Abuse |
|
|