|
| 14 May 2016 01:38 PM |
How would I make a part travel along a raycast?
|
|
|
| Report Abuse |
|
|
|
| 14 May 2016 01:40 PM |
I've looked on the wiki and all I found was how to create a raycast and a lazer gun.
|
|
|
| Report Abuse |
|
|
Querq
|
  |
| Joined: 10 Apr 2013 |
| Total Posts: 486 |
|
|
| 14 May 2016 01:41 PM |
Refer to this: http://wiki.roblox.com/index.php?title=Making_a_ray-casting_laser_gun#Making_a_Laser_Beam
|
|
|
| Report Abuse |
|
|
|
| 14 May 2016 01:45 PM |
What I mean is I'm trying to create a part that moves along a raycast. Like a bullet from a gun.
|
|
|
| Report Abuse |
|
|
Querq
|
  |
| Joined: 10 Apr 2013 |
| Total Posts: 486 |
|
|
| 14 May 2016 01:47 PM |
You take that link I just gave you, and you want to move a part in a loop until it hits basically. You have access to were the ray starts and were the ray ends. That is all you need
|
|
|
| Report Abuse |
|
|
|
| 14 May 2016 01:48 PM |
CFrame.new(PosOFObject,endPointVector3) gets the object to point into the direction to where it goes. knowing this, you can use the endPointVector3 with the end point of ray cast. |
|
|
| Report Abuse |
|
|
|
| 14 May 2016 02:41 PM |
I've done what you guys have said but the part just instantly teleports to the end of the ray. How do I make it move along the ray?
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 14 May 2016 02:50 PM |
Here's what is happening to the part:
https://gyazo.com/029e9d3866b0fb9c46aa9fc6ab6c0efe
I don't know how to make it not teleport there!
|
|
|
| Report Abuse |
|
|
|
| 14 May 2016 02:52 PM |
| you can't use raycasting... you have to put in a body velocity |
|
|
| Report Abuse |
|
|