💬 Discord ▶ YouTube

Raycasting (Guns, Visualizers, Shapecasts) – Roblox Advanced Scripting #37 (2025)

👁 125K views 📅 18 Jul 2025 📂 Premium

Learn how to script Raycasting in your Roblox games! Raycasting is an easy concept to understand, but a very difficult concept to implement, making it one of the most popular scripting concepts on Roblox. Follow along this long, detailed tutorial discussing what raycasting is, how to create visuals for your raycasts, learn RayResults, Raycast Parameters, gun systems, and spherecasts/shapecasts to create bigger bullets! This episode is packed with valuable knowledge for Roblox developers that you won’t want to miss!

PATREON🎁
Get Access To My Scripts + More Perks By Becoming a Patreon Member! 👇
https://www.patreon.com/BrawlDev

JOIN THE COMMUNITY
📜Discord: https://discord.gg/WC6kPu5W5P
🟣Twitch: https://www.twitch.tv/brawldev
🐦Twitter: https://x.com/BrawlDevRBLX
🎮Roblox Group: https://www.roblox.com/communities/34569363/BrawlDevs-Hideout

📜Become a PRO Roblox Scripter by following these playlists! 👇
🔴Advanced Scripting Guide:
/>
🟢Beginners Scripting Guide:
/>
🎨GUI Guide:

In this 2023-2025 Guide to Roblox Scripting for Advanced Developers, I will go through everything you need to know to continue scripting on Roblox!
My new mission is to have fun teaching everything I know from developing games on Roblox since 2016. We will dive into scripting concepts as basic as printing to as complicated as raycasting. For every episode of this series, I encourage you to do everything I do to gain experience and let it stick with you so that you can create the games you’re passionate about on your own. Enjoy this series and remember: being a competent scripter takes time and effort so don’t get discouraged if things get too tricky. Remember where your inspirations came from; if you can be a Roblox scripter, then anyone can!

Timestamps:
00:00 Intro
00:51 CONCEPTION (What is Raycasting + Examples)
03:28 Shooting a Ray
7:30 What does RayResult return? (Instance, Position, Material, etc.)
8:18 Creating a Ray Visualizer Function
11:55 2-Part Raycast System
13:57 Raycast Parameters (RaycastParams)
17:18 How to Make a Gun With Raycasting
20:16 Gun System – Local Code
21:34 Gun System – Server Code
28:41 Gun System – Raycast Patches & Fixes
34:25 Gun System – Intro to Spherecasts (Volumetric Raycasts)

Tags:

DOWNLOAD ROBLOX STUDIO HERE:
https://create.roblox.com
(On the left side under “Quick Links”, click on “Studio” and download)

More Resources:
Raycasting Docs: https://create.roblox.com/docs/workspace/raycasting
Detailed Raycasting Tutorial: />
Gun w/ Spherecast Tutorial:
/>
Spherecast Docs:
https://create.roblox.com/docs/reference/engine/classes/WorldRoot

#038;si=ZNaq1wQ7Dvaqk__a" #37 #roblox #robloxstudio