|
| 08 Jul 2011 06:41 PM |
function onFire(gun) local Hit, Pos = game.Workspace:FindPartOnRay(Ray.new(gun.Position, gun.CFrame.lookVector * 999)) local b = Instance.new("Part") b.Parent = game.Workspace b.Position = gun.Position:Lerp(Pos, 0.1) b.formFactor = 0 b.Size = Vector3.new(1,.4,1) b.BrickColor = BrickColor.new(194) b.Name = "Rocket" local bg = Instance.new("BodyGyro") bg.cframe = CFrame.new(b.Position, Pos) local bv = Instance.new("BodyVelocity") bv.velocity = gun.CFrame.lookVector * 1000 bv.Parent = b local M = script.Parent.Rockett:Clone() M.Parent = b local K = Instance.new("Smoke") K.Parent = b K.RiseVelocity = 10 local creator_tag = Instance.new("ObjectValue") creator_tag.Value = script.Parent.Parent.Parent creator_tag.Name = "creator" creator_tag.Parent = b M.Offset = Vector3.new(500,0,0) b:Remove() if Hit then local e = Instance.new("Explosion") e.Parent = workspace e.Position = Pos end end
It won't simulate the movement of the Mesh
|
|
|
| Report Abuse |
|
|
|
| 08 Jul 2011 06:42 PM |
| It won't work because you made it... XD |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2011 06:44 PM |
@flappy You know, I'm starting to think that too. It seems whatever I make doesn't work for me. |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2011 06:48 PM |
| Thanks everyone. *dripping with sarcasm* *eats sarcasm burger* |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Jul 2011 06:51 PM |
| Lawl, but I wasn't. So, now anyone? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 08 Jul 2011 08:59 PM |
| Look, I got you excited because I posted C: you though I was gonna help, but I didn't trololololol. |
|
|
| Report Abuse |
|
|
| |
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 08 Jul 2011 09:01 PM |
| I will script a turret for my plane just to make you mad. |
|
|
| Report Abuse |
|
|
| |
|
Spectrumz
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 4338 |
|
|
| 08 Jul 2011 09:03 PM |
@Spectrumw
Make sure it has lock on and all that stuff :)
Then post the link here. |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2011 09:04 PM |
Spectrumz You mind helping me, or are you just gonna troll this thread? |
|
|
| Report Abuse |
|
|
Spectrumz
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 4338 |
|
|
| 08 Jul 2011 09:06 PM |
| :FindPartOnray() is unfamiliar to me, I have no idea what it does. |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2011 09:07 PM |
| It does what it says. Finds the ray on a part. You familiar with offset of BlockMesh? Cause that's what I need help with. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
|
| 09 Jul 2011 08:14 AM |
| BWHAHAHA, I love Spectrumw, he trolls the threads as a joke so well! XD |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2011 08:42 AM |
| He knows I need desperate help with this :P |
|
|
| Report Abuse |
|
|
| |
|