KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 03:17 PM |
| Plz help me guys, I don't wanna use more than 2 Parts (or even more than 1)... so how would I actually set the CFrame to watecer Face so that the Bullet could shoot or the Grenade be Thrown? |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2014 03:20 PM |
| You can get the front face's position by using part.CFrame.lookVector |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 03:22 PM |
| Workspace.Player1.Medkit.Throw:22: bad argument #3 to 'CFrame' (CFrame expected, got userdata) I had already tried that method, thats y am asking... |
|
|
| Report Abuse |
|
|
| |
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 03:25 PM |
| part.CFrame = Tool.Handle.CFrame.lookVector |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 04 Jun 2014 03:27 PM |
lookVector is a Vector3 value Are you trying to make 1 part face another part's lookVector? |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 03:28 PM |
| there is only 1 Part in the Tool, so I need the clone of it to face the Handles FrontFace... |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 04 Jun 2014 03:33 PM |
clone.CFrame = CFrame.new(clone.Position, handle.CFrame * Vector3.new(0, 0, -handle.Size.Z/2));
Like that? |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 03:36 PM |
| no, my Item is being dropped at TopSurface Still :/ |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 03:38 PM |
| it's like a Fake Item that confuses people... about the Size of, say, ur Torso... and I need it to be Thrown to the FrontSurface... |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 03:41 PM |
| yes... like u throw the small medkit or a Grenade (but not as Far) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 04 Jun 2014 03:43 PM |
Velocity and lookVector.
medkit.CFrame = handle.CFrame medkit.Velocity = handle.CFrame.lookVector * 100
You mean like that?
|
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 03:46 PM |
| nope, my Fake Medkit will never work if I never get my Answer :'( it's still dropped, not Thrown forward... it's TopSurface is Pointing down... |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
| |
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 04 Jun 2014 04:39 PM |
I don't know what you want anymore. To make it face the front face, throw it there, or what... |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 05:02 PM |
I have 1 Part, I want it to be cloned (Original Part is the 'Handle') then the Cloned Part must Face the Same Direction the Front Face of the Handle is Facing... then of course add the Speed and stuff wich I already know... Note, I've added another Part now cos no1 can give me the correct answer... so now am having trouble making the cloned Part face the Focus Part from the Handle... |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 04 Jun 2014 05:03 PM |
| Set the cloned part to the same CF then? |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 05:14 PM |
| cloned part to Handle CFrame??? -_- dude, u must be mistaking me with an Idiot! I said, I tried it already, it went down not forward :P |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 04 Jun 2014 05:15 PM |
| I didn't mistake you with anything. You just need to learn how CFrame works and what velocity is. |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 05:22 PM |
| about CFrame yes, it's sooo Complicating, that it makes me so Angry I want to Box everything in front off me! but velocity, it's Speed... |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 04 Jun 2014 05:24 PM |
Exactly, so you position the medkit to the handle and set the velocity to something pointing forward's lookVector.
clone.CFrame = CFrame.new(handle.Position) clone.Velocity = torso.lookVector * 100 |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 04 Jun 2014 05:29 PM |
code u gave me... lookVector is not a valid member of Part |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|