Intel65
|
  |
| Joined: 19 Oct 2013 |
| Total Posts: 9 |
|
|
| 24 Jun 2014 06:04 PM |
This may sound like an easy problem to fix, I don't know how to, but it could fix 99 of my LUA problems.
How can I create a script so a brick would be in front of my torso. I have tried Vector3.new(5, 0, 0) or the other way, but, if I turn a different direction, it's not in front of my torso. How can I fix this? |
|
|
| Report Abuse |
|
|
| |
|
Intel65
|
  |
| Joined: 19 Oct 2013 |
| Total Posts: 9 |
|
| |
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 24 Jun 2014 06:16 PM |
| part.CFrame = torso.CFrame * CFrame.new(0,0,-5) |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2014 06:16 PM |
| do you want to just put it in front of you, or attach it to the front of you? |
|
|
| Report Abuse |
|
|
Intel65
|
  |
| Joined: 19 Oct 2013 |
| Total Posts: 9 |
|
| |
|
domorox17
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 1710 |
|
|
| 24 Jun 2014 06:56 PM |
| @Rofl You may want to add not multiply. Multiplication can end up making it be on your torso at 0, and it would keep getting farther away. |
|
|
| Report Abuse |
|
|