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: Opposite of lookVector?

Previous Thread :: Next Thread 
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Jul 2011 01:51 PM
missile = script.Parent

direction = missile.CFrame.lookVector * 5

~~~

Hey guys, I haven't been on for a while, so if you could help me out. Currently, * 5 indicates how fast and how far it could go until it deletes itself. When I remove the * 5 or just add in a digit over the LookVector value, it shoots downwards, not backwards.

I just want it to shoot the opposite side of the figure which is he is facing.
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Jul 2011 01:56 PM
Nothing??
Report Abuse
chikenugget is not online. chikenugget
Joined: 09 May 2009
Total Posts: 2552
09 Jul 2011 02:03 PM
Im probably wrong because ive never done this before but...

lookVector * FromEulerAngles(0,0,180)

or something similar, im probably wrong though...
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Jul 2011 02:06 PM
Nope :) Lol
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
09 Jul 2011 02:06 PM
I might be wrong because I haven't tested it yet...
Try -5
Report Abuse
Nikolas5411 is not online. Nikolas5411
Joined: 03 Apr 2010
Total Posts: 2117
09 Jul 2011 02:07 PM
Try Vector3.new(0, 0, 0) instead.
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Jul 2011 02:15 PM
@RoAnt

Thats the same thing as "Add in a digit" so it won't work

@Nic

Now it just explodes on the spot, not shooting forward nor going backwards, perhaps, not even going anywhere.

These statements: * and / (Stands for multiply and divide) makes the shooter dont even move anywhere

+ and - ::: Now where talking, but it only shoots right and left, so that solved my right and left fireball issue, but the backward shooting is the most wanted.
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
09 Jul 2011 02:17 PM
@Swordphin
lookVector * -5

._. It works, I have used it.
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Jul 2011 02:18 PM
@Spectrumw

FINALLY A GOOD FRIEND/SCRIPTER

PS: Hi der, never seen you in a while...

Thanks man, you made your grandpa proud ;3
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
09 Jul 2011 02:20 PM
... didn't I typed that?
Report Abuse
bagwan12345 is not online. bagwan12345
Joined: 17 Dec 2009
Total Posts: 1498
09 Jul 2011 02:21 PM
I am not good at scripting, and don't mean to offend you, but obviously this is a negative number you must deal with to make it opposite, just like Velocity
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Jul 2011 02:21 PM
@RoAnt

I'm probably a bad problem solver but, whenever someone just says that too me, I usually think probably the most specific thing in my mine:

lookVector - 5
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
09 Jul 2011 02:25 PM
Hi sword C: yeah I quit Roblox for a while... But now I'm back, although I spend more time in Scripters forum.
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
09 Jul 2011 02:26 PM
[ Content Deleted ]
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
09 Jul 2011 02:34 PM
[ Content Deleted ]
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
09 Jul 2011 02:35 PM
[ Content Deleted ]
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
09 Jul 2011 02:37 PM
[ Content Deleted ]
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
09 Jul 2011 02:37 PM
[ Content Deleted ]
Report Abuse
VitimanA is not online. VitimanA
Joined: 04 Apr 2008
Total Posts: 869
09 Jul 2011 03:04 PM
since you're making a gun(i bieleve)


missile = script.Parent

for i = 1, 100 do
wait()
missile.CFrame = missile.CFrame * CFrame.new(0,0,0) -- change one of the zeroe's to your choosing
end

--another solution i bielive

Torso = script.Parent.Parent.Torso -- add or subrtract parents if output says

missile.CFrame = Torso.CFrame

--insert your look vector stuff here

Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
09 Jul 2011 03:29 PM
@oysi

The search option is pretty garbage becase everytime I search something, it usually comes up with a script builder post and those other sorts of idiotic things, as whenever i search it in the scripting helpers, it says "no search results are found"

@vit

No it was for a boss, but thanks anyway, but by the way, if I dont have anything to test with, I wouldn't even be making this post
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