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: Where it Hit on Part

Previous Thread :: Next Thread 
HatLicense is not online. HatLicense
Joined: 16 Mar 2015
Total Posts: 330
21 Feb 2016 10:54 AM

Lets say I launch a bullet and it hits another part, can I find exactly where it hit on that part?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
21 Feb 2016 10:55 AM
Well if you're using raycasting (And you really should be since Touched is unreliable) then it is just the second and third returns from FindPartOnRay.


Report Abuse
HatLicense is not online. HatLicense
Joined: 16 Mar 2015
Total Posts: 330
21 Feb 2016 10:56 AM

uh- How would I replace onTouched with RayCasting- I've always used onTouch.

Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
21 Feb 2016 10:57 AM
Well, firstly, learn raycasting. There are tutorials for "Raycasting Lasergun" on the wiki, and that should get you started.


Report Abuse
HatLicense is not online. HatLicense
Joined: 16 Mar 2015
Total Posts: 330
21 Feb 2016 11:15 AM

uh - I don't think I can use RayCasting for what I'm doing.
As in 'Bullet' I basically meant I was making a Ball that is fired, It could hit anything in its path, It might not be going in mouse direction.
Most tutorials show RayCasting being used to make a Laser which is basically determining the distance between the thing you've clicked, I don't know how I could use that to find if the part was actually touched..

Sorry if that sounds stupid, I'm just assuming.
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