generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Raycasting

Previous Thread :: Next Thread 
cocopuffman200 is not online. cocopuffman200
Joined: 21 Dec 2010
Total Posts: 181
14 May 2016 01:38 PM
How would I make a part travel along a raycast?


Report Abuse
cocopuffman200 is not online. cocopuffman200
Joined: 21 Dec 2010
Total Posts: 181
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 is not online. 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
cocopuffman200 is not online. cocopuffman200
Joined: 21 Dec 2010
Total Posts: 181
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 is not online. 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
scottmike0 is not online. scottmike0
Joined: 14 Sep 2008
Total Posts: 1073
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
cocopuffman200 is not online. cocopuffman200
Joined: 21 Dec 2010
Total Posts: 181
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
cocopuffman200 is not online. cocopuffman200
Joined: 21 Dec 2010
Total Posts: 181
14 May 2016 02:45 PM
b


Report Abuse
SoapyDishy is not online. SoapyDishy
Joined: 31 Aug 2015
Total Posts: 2169
14 May 2016 02:46 PM
BodyVelocity
Report Abuse
cocopuffman200 is not online. cocopuffman200
Joined: 21 Dec 2010
Total Posts: 181
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
SoapyDishy is not online. SoapyDishy
Joined: 31 Aug 2015
Total Posts: 2169
14 May 2016 02:52 PM
you can't use raycasting... you have to put in a body velocity
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image