|
| 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 |
|
|
| |
|
|
| 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 |
|
|
| |
|
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 |
|
|
|
| 09 Jul 2011 02:07 PM |
| Try Vector3.new(0, 0, 0) instead. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 09 Jul 2011 02:17 PM |
@Swordphin lookVector * -5
._. It works, I have used it. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
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 |
|
|
|
| 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 |
|
|