generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Getting a Face of a Part as the Focus

Previous Thread :: Next Thread 
KAAK82 is not online. 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
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
04 Jun 2014 03:20 PM
You can get the front face's position by using part.CFrame.lookVector
Report Abuse
KAAK82 is not online. 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
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
04 Jun 2014 03:24 PM
Paste line 22 here.
Report Abuse
KAAK82 is not online. KAAK82
Joined: 06 May 2014
Total Posts: 1166
04 Jun 2014 03:25 PM
part.CFrame = Tool.Handle.CFrame.lookVector
Report Abuse
cntkillme is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Jun 2014 03:39 PM
"Thrown"?
Report Abuse
KAAK82 is not online. 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 is not online. 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 is not online. 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 is not online. KAAK82
Joined: 06 May 2014
Total Posts: 1166
04 Jun 2014 03:57 PM
help?
Report Abuse
KAAK82 is not online. KAAK82
Joined: 06 May 2014
Total Posts: 1166
04 Jun 2014 04:38 PM
plz guys -_-
Report Abuse
cntkillme is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Jun 2014 05:30 PM
torso.CFrame.lookVector*
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image