Things i tried that didnt work. Doing raycasts on the client side increasing delay between.
![Unable To Raycast Through Parts Scripting Support Roblox Developer Forum - unable to raycast through parts raycast roblox forum Unable To Raycast Through Parts Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/3X/9/8/989215291313edafed693f441c74db5cbcc156ed.jpg)
Unable To Raycast Through Parts Scripting Support Roblox Developer Forum unable to raycast through parts
![raycast roblox forum](https://doy2mn9upadnk.cloudfront.net/uploads/default/c6379335ca4af9229c00b0f76d881321260679f4)
raycast roblox forum, I am trying to achieve a realistic bullet and ive bumped into an issue where the raycasting works normally but when i shoot the bullet straight up and falls down due to the bullet drop the raycast does not work at all and the bullet falls through the ground code local runservice gamegetservicerunservice local mathpi mathpi local cframenew cframenew local vector3new vector3. Local function firelaser set an origin and directional vector local rayorigin casterposition local raydirection vector3new0 100 0 build a raycastparams object and cast the ray local raycastparams raycastparamsnew raycastparamsfilterdescendantsinstances casterparent raycastparamsfiltertype enumraycastfiltertypeblacklist local raycastresult workspaceraycast. Id like to know any alternatives to raycasting in scripts. Then i fire a raycast from the npc to the player this is to determine if anything is in the way. Doing raycasts on the client side increasing delay between.
![Get Length Of Intersection Of Ray Intersecting Part Scripting Support Roblox Developer Forum - intersection of ray intersecting part raycast roblox forum Get Length Of Intersection Of Ray Intersecting Part Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/7/8/9/78985e4027bee0eae274e90bccdeffa4a8a4e836.png)
Get Length Of Intersection Of Ray Intersecting Part Scripting Support Roblox Developer Forum intersection of ray intersecting part
![Help With Raycasting Logic Scripting Support Roblox Developer Forum - help with raycasting logic scripting raycast roblox forum Help With Raycasting Logic Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/6/b/c/6bccf506c617674d6a53a511528e0a22786f1cfc.png)
Help With Raycasting Logic Scripting Support Roblox Developer Forum help with raycasting logic scripting
![Https Encrypted Tbn0 Gstatic Com Images Q Tbn 3aand9gcqes6hubiampyfv5e2itxy2uxioj3s0ugiwja Usqp Cau - roblox developer forum raycast roblox forum Https Encrypted Tbn0 Gstatic Com Images Q Tbn 3aand9gcqes6hubiampyfv5e2itxy2uxioj3s0ugiwja Usqp Cau - raycast roblox forum](https://i.gyazo.com/789a604adbee68318bc113bb433eeb45.gif)
Https Encrypted Tbn0 Gstatic Com Images Q Tbn 3aand9gcqes6hubiampyfv5e2itxy2uxioj3s0ugiwja Usqp Cau roblox developer forum
![Intro To Raycasting - intro to raycasting raycast roblox forum Intro To Raycasting - raycast roblox forum](https://developer.roblox.com/assets/blt7d1559b971979676/Raycasting-Diagram.svg)
Intro To Raycasting intro to raycasting
![Camera Worldtoviewportpoint Code Sample Uses Now Deprecated Raycasting Api Developer Hub Roblox Developer Forum - worldtoviewportpoint code sample uses raycast roblox forum Camera Worldtoviewportpoint Code Sample Uses Now Deprecated Raycasting Api Developer Hub Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/1/4/e/14ee5e91428891fbc47bd35c8235c738addc0547.png)
Camera Worldtoviewportpoint Code Sample Uses Now Deprecated Raycasting Api Developer Hub Roblox Developer Forum worldtoviewportpoint code sample uses
![How To Get From Raycasting To A Image File Of A Minimap Scripting Support Roblox Developer Forum - image file of a minimap raycast roblox forum How To Get From Raycasting To A Image File Of A Minimap Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/3X/c/6/c6671828a89e1657625df05cfbaf5a42c3244ae2.jpg)
How To Get From Raycasting To A Image File Of A Minimap Scripting Support Roblox Developer Forum image file of a minimap
![Help On Raycasting Scripting Support Roblox Developer Forum - help on raycasting scripting support raycast roblox forum Help On Raycasting Scripting Support Roblox Developer Forum - raycast roblox forum](https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/6/7/f/67fa86b1310405ae544bbe775c160b191599058f.png)
Help On Raycasting Scripting Support Roblox Developer Forum help on raycasting scripting support
![How To Detect Collision With Raycasting Inside A Part Scripting Support Roblox Developer Forum - how to detect collision with raycasting raycast roblox forum How To Detect Collision With Raycasting Inside A Part Scripting Support Roblox Developer Forum - raycast roblox forum](https://doy2mn9upadnk.cloudfront.net/uploads/default/optimized/4X/9/3/6/93655a9d8c99637bd736c6476922f084ce4c2cfe_2_551x500.jpeg)
How To Detect Collision With Raycasting Inside A Part Scripting Support Roblox Developer Forum how to detect collision with raycasting
![Raycast And Terrain Detection Scripting Support Roblox Developer Forum - roblox developer forum raycast roblox forum Raycast And Terrain Detection Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/b/3/5/b35abf961df996886349ef68691f83ccf7fed77a.png)
Raycast And Terrain Detection Scripting Support Roblox Developer Forum roblox developer forum
![Maximum Raycast Distance Scripting Support Roblox Developer Forum - maximum raycast distance scripting raycast roblox forum Maximum Raycast Distance Scripting Support Roblox Developer Forum - raycast roblox forum](https://doy2mn9upadnk.cloudfront.net/uploads/default/original/3X/e/0/e0e38e3d39403458bdf0513979b05e85ed586107.png)
Maximum Raycast Distance Scripting Support Roblox Developer Forum maximum raycast distance scripting
![Raycast Sometimes Likes To Not Exist Scripting Support Roblox Developer Forum - raycast sometimes likes to not exist raycast roblox forum Raycast Sometimes Likes To Not Exist Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/a/b/d/abd862d64dcaf8938cb88732ff0e07cc7725698b.png)
Raycast Sometimes Likes To Not Exist Scripting Support Roblox Developer Forum raycast sometimes likes to not exist
![Trouble With Getting Perfect Position In Raycasting Scripting Support Roblox Developer Forum - trouble with getting perfect position raycast roblox forum Trouble With Getting Perfect Position In Raycasting Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/1/c/c/1cc575f5caba794f0b48dad5310269b176aab0fb.jpeg)
Trouble With Getting Perfect Position In Raycasting Scripting Support Roblox Developer Forum trouble with getting perfect position
![Detecting Parts In A Field Of View Scripting Support Roblox Developer Forum - detecting parts in a field of view raycast roblox forum Detecting Parts In A Field Of View Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/3/f/9/3f9077340f3e260857f35db12b829f80652f25da.png)
Detecting Parts In A Field Of View Scripting Support Roblox Developer Forum detecting parts in a field of view
![How To Get The Cframe Hit Of A Ray Scripting Support Roblox Developer Forum - how to get the cframe hit of a ray raycast roblox forum How To Get The Cframe Hit Of A Ray Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/d/1/5/d152096babd3127a6868e9d30e21cbf3bab04bf9.jpg)
How To Get The Cframe Hit Of A Ray Scripting Support Roblox Developer Forum how to get the cframe hit of a ray
![Raycast Help W Collectionservice Scripting Support Roblox Developer Forum - raycast help w collectionservice raycast roblox forum Raycast Help W Collectionservice Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/2/5/2/252efa6f5a1b365239fbfb5063c3bacd032e9897.png)
Raycast Help W Collectionservice Scripting Support Roblox Developer Forum raycast help w collectionservice
![Surface Normal Help Scripting Support Roblox Developer Forum - surface normal help scripting support raycast roblox forum Surface Normal Help Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/9/b/7/9b760a0f8126383f45218aaf0bda3271e9b45537.png)
Surface Normal Help Scripting Support Roblox Developer Forum surface normal help scripting support
![How To Reflect Rays On Hit Community Tutorials Roblox Developer Forum - how to reflect rays on hit community raycast roblox forum How To Reflect Rays On Hit Community Tutorials Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/5/f/c/5fceb9dbab1e038491d957e55503c7876d7cc386.jpeg)
How To Reflect Rays On Hit Community Tutorials Roblox Developer Forum how to reflect rays on hit community
![Unable To Raycast Through Parts Scripting Support Roblox Developer Forum - unable to raycast through parts raycast roblox forum Unable To Raycast Through Parts Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/3X/9/8/989215291313edafed693f441c74db5cbcc156ed.jpg)
Unable To Raycast Through Parts Scripting Support Roblox Developer Forum unable to raycast through parts
I want to see what it looks like visually so i know what im doing wrong.
raycast roblox forum, I am trying to achieve a realistic bullet and ive bumped into an issue where the raycasting works normally but when i shoot the bullet straight up and falls down due to the bullet drop the raycast does not work at all and the bullet falls through the ground code local runservice gamegetservicerunservice local mathpi mathpi local cframenew cframenew local vector3new vector3. Local function firelaser set an origin and directional vector local rayorigin casterposition local raydirection vector3new0 100 0 build a raycastparams object and cast the ray local raycastparams raycastparamsnew raycastparamsfilterdescendantsinstances casterparent raycastparamsfiltertype enumraycastfiltertypeblacklist local raycastresult workspaceraycast. Id like to know any alternatives to raycasting in scripts. Then i fire a raycast from the npc to the player this is to determine if anything is in the way. Doing raycasts on the client side increasing delay between.
![Get Length Of Intersection Of Ray Intersecting Part Scripting Support Roblox Developer Forum - intersection of ray intersecting part raycast roblox forum Get Length Of Intersection Of Ray Intersecting Part Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/7/8/9/78985e4027bee0eae274e90bccdeffa4a8a4e836.png)
Get Length Of Intersection Of Ray Intersecting Part Scripting Support Roblox Developer Forum intersection of ray intersecting part
![Help With Raycasting Logic Scripting Support Roblox Developer Forum - help with raycasting logic scripting raycast roblox forum Help With Raycasting Logic Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/6/b/c/6bccf506c617674d6a53a511528e0a22786f1cfc.png)
Help With Raycasting Logic Scripting Support Roblox Developer Forum help with raycasting logic scripting
![Https Encrypted Tbn0 Gstatic Com Images Q Tbn 3aand9gcqes6hubiampyfv5e2itxy2uxioj3s0ugiwja Usqp Cau - roblox developer forum raycast roblox forum Https Encrypted Tbn0 Gstatic Com Images Q Tbn 3aand9gcqes6hubiampyfv5e2itxy2uxioj3s0ugiwja Usqp Cau - raycast roblox forum](https://i.gyazo.com/789a604adbee68318bc113bb433eeb45.gif)
Https Encrypted Tbn0 Gstatic Com Images Q Tbn 3aand9gcqes6hubiampyfv5e2itxy2uxioj3s0ugiwja Usqp Cau roblox developer forum
Intro To Raycasting intro to raycasting
![Camera Worldtoviewportpoint Code Sample Uses Now Deprecated Raycasting Api Developer Hub Roblox Developer Forum - worldtoviewportpoint code sample uses raycast roblox forum Camera Worldtoviewportpoint Code Sample Uses Now Deprecated Raycasting Api Developer Hub Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/1/4/e/14ee5e91428891fbc47bd35c8235c738addc0547.png)
Camera Worldtoviewportpoint Code Sample Uses Now Deprecated Raycasting Api Developer Hub Roblox Developer Forum worldtoviewportpoint code sample uses
![How To Get From Raycasting To A Image File Of A Minimap Scripting Support Roblox Developer Forum - image file of a minimap raycast roblox forum How To Get From Raycasting To A Image File Of A Minimap Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/3X/c/6/c6671828a89e1657625df05cfbaf5a42c3244ae2.jpg)
How To Get From Raycasting To A Image File Of A Minimap Scripting Support Roblox Developer Forum image file of a minimap
![Help On Raycasting Scripting Support Roblox Developer Forum - help on raycasting scripting support raycast roblox forum Help On Raycasting Scripting Support Roblox Developer Forum - raycast roblox forum](https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/6/7/f/67fa86b1310405ae544bbe775c160b191599058f.png)
Help On Raycasting Scripting Support Roblox Developer Forum help on raycasting scripting support
![How To Detect Collision With Raycasting Inside A Part Scripting Support Roblox Developer Forum - how to detect collision with raycasting raycast roblox forum How To Detect Collision With Raycasting Inside A Part Scripting Support Roblox Developer Forum - raycast roblox forum](https://doy2mn9upadnk.cloudfront.net/uploads/default/optimized/4X/9/3/6/93655a9d8c99637bd736c6476922f084ce4c2cfe_2_551x500.jpeg)
How To Detect Collision With Raycasting Inside A Part Scripting Support Roblox Developer Forum how to detect collision with raycasting
![Raycast And Terrain Detection Scripting Support Roblox Developer Forum - roblox developer forum raycast roblox forum Raycast And Terrain Detection Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/b/3/5/b35abf961df996886349ef68691f83ccf7fed77a.png)
Raycast And Terrain Detection Scripting Support Roblox Developer Forum roblox developer forum
![Maximum Raycast Distance Scripting Support Roblox Developer Forum - maximum raycast distance scripting raycast roblox forum Maximum Raycast Distance Scripting Support Roblox Developer Forum - raycast roblox forum](https://doy2mn9upadnk.cloudfront.net/uploads/default/original/3X/e/0/e0e38e3d39403458bdf0513979b05e85ed586107.png)
Maximum Raycast Distance Scripting Support Roblox Developer Forum maximum raycast distance scripting
![Raycast Sometimes Likes To Not Exist Scripting Support Roblox Developer Forum - raycast sometimes likes to not exist raycast roblox forum Raycast Sometimes Likes To Not Exist Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/a/b/d/abd862d64dcaf8938cb88732ff0e07cc7725698b.png)
Raycast Sometimes Likes To Not Exist Scripting Support Roblox Developer Forum raycast sometimes likes to not exist
![Trouble With Getting Perfect Position In Raycasting Scripting Support Roblox Developer Forum - trouble with getting perfect position raycast roblox forum Trouble With Getting Perfect Position In Raycasting Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/1/c/c/1cc575f5caba794f0b48dad5310269b176aab0fb.jpeg)
Trouble With Getting Perfect Position In Raycasting Scripting Support Roblox Developer Forum trouble with getting perfect position
![Detecting Parts In A Field Of View Scripting Support Roblox Developer Forum - detecting parts in a field of view raycast roblox forum Detecting Parts In A Field Of View Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/3/f/9/3f9077340f3e260857f35db12b829f80652f25da.png)
Detecting Parts In A Field Of View Scripting Support Roblox Developer Forum detecting parts in a field of view
![How To Get The Cframe Hit Of A Ray Scripting Support Roblox Developer Forum - how to get the cframe hit of a ray raycast roblox forum How To Get The Cframe Hit Of A Ray Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/d/1/5/d152096babd3127a6868e9d30e21cbf3bab04bf9.jpg)
How To Get The Cframe Hit Of A Ray Scripting Support Roblox Developer Forum how to get the cframe hit of a ray
![Raycast Help W Collectionservice Scripting Support Roblox Developer Forum - raycast help w collectionservice raycast roblox forum Raycast Help W Collectionservice Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/2/5/2/252efa6f5a1b365239fbfb5063c3bacd032e9897.png)
Raycast Help W Collectionservice Scripting Support Roblox Developer Forum raycast help w collectionservice
![Surface Normal Help Scripting Support Roblox Developer Forum - surface normal help scripting support raycast roblox forum Surface Normal Help Scripting Support Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/9/b/7/9b760a0f8126383f45218aaf0bda3271e9b45537.png)
Surface Normal Help Scripting Support Roblox Developer Forum surface normal help scripting support
![How To Reflect Rays On Hit Community Tutorials Roblox Developer Forum - how to reflect rays on hit community raycast roblox forum How To Reflect Rays On Hit Community Tutorials Roblox Developer Forum - raycast roblox forum](https://devforum.roblox.com/uploads/default/original/4X/5/f/c/5fceb9dbab1e038491d957e55503c7876d7cc386.jpeg)
How To Reflect Rays On Hit Community Tutorials Roblox Developer Forum how to reflect rays on hit community