|
| 17 Oct 2013 10:00 AM |
| So, I've got a raycast weapon that goes from one point to another, how can I make it so it's like a bullet, more than a straight line. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 17 Oct 2013 10:03 AM |
| Create shorter brick that faces it, and you can move it either with CFrame or BodyVelocity. If you'd use CFrame, you'd need to proppell the bullet with loop, but server lag wouldn't affect it, but using BodyVelocity would move on itself, tho it could be slow down on bit laggier server. But that doesn't matter I guess, since the bullet is just for visuals, right? |
|
|
| Report Abuse |
|
|
| |
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 17 Oct 2013 10:09 AM |
part.CFrame = part.CFrame*CFrame.new(0,0,1)--Or something like that
Wait, but you want it to work like bullet, not ray, right? Then I'd ray cast everytime I move part, to see if it has hit something, since .Touched event wouldn't work properly in that scenario. |
|
|
| Report Abuse |
|
|