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 » Scripting Helpers
Home Search
 

Re: Raycast

Previous Thread :: Next Thread 
Greyhound40 is not online. Greyhound40
Joined: 15 Oct 2008
Total Posts: 933
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 is not online. 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
Greyhound40 is not online. Greyhound40
Joined: 15 Oct 2008
Total Posts: 933
17 Oct 2013 10:05 AM
How would I propel it?
Report Abuse
zars15 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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