usermvp
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 188 |
|
|
| 28 Dec 2015 11:29 PM |
So basically it just comes out of the hole and fly's straight. I know there was a thread about this but I forgot it. Could someone help?
~Previously known as Zztheses |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2015 11:33 PM |
| use the lookvector of the handle |
|
|
| Report Abuse |
|
|
usermvp
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 188 |
|
|
| 28 Dec 2015 11:35 PM |
I have a area where the bullet intends to spawn, but it is based on Mouse.Hit.p, how would I make it so it fly's just straight?
~Previously known as Zztheses |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2015 11:37 PM |
| the answer is still lookvector |
|
|
| Report Abuse |
|
|
usermvp
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 188 |
|
|
| 28 Dec 2015 11:52 PM |
Bump
~Previously known as Zztheses |
|
|
| Report Abuse |
|
|
| |
|
usermvp
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 188 |
|
|
| 29 Dec 2015 12:04 AM |
Saying 'use lookvector' isn't much help.
~Previously known as Zztheses |
|
|
| Report Abuse |
|
|
| |
|
usermvp
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 188 |
|
|
| 29 Dec 2015 12:06 AM |
This is where it positions is;
bullet.CFrame = script.Parent:WaitForChild('WhereBulletsSpawn').CFrame bullet.CFrame = CFrame.new(bullet.Position, mouse.Hit.p)
How would I made it so it's not mouse.Hit.p but it's just straight?
~Previously known as Zztheses |
|
|
| Report Abuse |
|
|
gangman67
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 798 |
|
|
| 29 Dec 2015 12:31 AM |
| use the fooking lookvector and fooking bodyvelocity |
|
|
| Report Abuse |
|
|
usermvp
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 188 |
|
|
| 29 Dec 2015 12:38 AM |
This is the part that makes it shoot
local mousecframe = mouse.Hit local newcframe = CFrame.new(mousecframe.X, mousecframe.Y, 0)
bullet.CFrame = m9:WaitForChild('WhereBulletsSpawn').CFrame bullet.CFrame = newcframe * CFrame.new(mousecframe.X, mousecframe.Y, 0)
local bv = Instance.new('BodyVelocity', bullet) bv.Name = 'BV' bv.velocity = bullet.CFrame.lookVector * 550
Won't work
~Previously known as Zztheses |
|
|
| Report Abuse |
|
|