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: Test RPG Look.Vector

Previous Thread :: Next Thread 
LokHsuLi is not online. LokHsuLi
Joined: 02 Feb 2013
Total Posts: 136
07 May 2014 12:56 PM
guys, if I apply the Look.Vector for the shot, instead of the Mouse.Cursor, would there still be bullet drop???
Report Abuse
Jetta765214 is not online. Jetta765214
Joined: 22 Oct 2008
Total Posts: 1855
07 May 2014 01:21 PM
Roblox naturally has gravity which adds bullet drop. If you rely on Roblox's physics, and don't use Bodyvelocity(Or a similar object) then you should still have bullet drop.
Report Abuse
LokHsuLi is not online. LokHsuLi
Joined: 02 Feb 2013
Total Posts: 136
07 May 2014 05:50 PM
and so then wat about the Look.Vector then, howw would I use it to make the Missile/Bullet go were the Barrel is pointing not the mouse??? cos my RPG has its thing at the side not at the middle, so if its at the middle of course it'll go wwere u aim, but so mines on the side and the Missile goes to the side as well... so plz help me...
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
07 May 2014 05:59 PM
Use the lookVector property of its CFrame.
Report Abuse
LokHsuLi is not online. LokHsuLi
Joined: 02 Feb 2013
Total Posts: 136
08 May 2014 05:54 PM
lol sounds confusing... also, would the missile go in a straight line instead of were the mouse is pointing???
Report Abuse
LokHsuLi is not online. LokHsuLi
Joined: 02 Feb 2013
Total Posts: 136
09 May 2014 06:14 AM
guys b.u.m.p
Report Abuse
TigerCaptain is not online. TigerCaptain
Joined: 08 Aug 2011
Total Posts: 369
09 May 2014 06:21 AM
think of lookvector as this: Whereever the brick is facing, it will go.

brick.CFrame = brick.CFrame*brick.CFrame.lookVector*2

the 2 is how many studs it goes in that direction it is facing.
Report Abuse
LokHsuLi is not online. LokHsuLi
Joined: 02 Feb 2013
Total Posts: 136
09 May 2014 01:05 PM
how would I replace it with the missile going with the mouse thing? cos every single weapon on Roblox has the weapon thing going with the mouse... and also, the range is different cos there's Bullet Drop, so would I put infinite amount on? and also, does it seriously work well with gravity? cos usually if something is set to go from somewhere in a straight line then it doesnt move up or down but just forward...
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