Back to Browse

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

105.4K views
Jul 18, 2025
46:02

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: https://www.youtube.com/playlist?list=PLQ1Qd31Hmi3WKkVHnadvhOOjz04AuMYAf 🟢Beginners Scripting Guide: https://youtube.com/playlist?list=PLFmYTXJrXDg67iljZP9yRqOC9Jk388eZ5&si=ZNaq1wQ7Dvaqk__a 🎨GUI Guide: https://www.youtube.com/playlist?list=PLQ1Qd31Hmi3Xnlu8u9hCYClLurMQYJIrz 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: #roblox #robloxstudio #robloxscript #robloxscripting #robloxadvancedscripting #robloxdev #robloxdevelopment #robloxdeveloper #robloxprogramming #scripting #programming #gamedev #gamedevelopment #gamedeveloper #robloxtutorial #robloxscriptingtutorial #gameprogramming #gamedesign #tutorial #howtomakearobloxgame 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: https://www.youtube.com/watch?v=YipkISTwGlc Gun w/ Spherecast Tutorial: https://www.youtube.com/watch?v=tvj_2sWMXGU Spherecast Docs: https://create.roblox.com/docs/reference/engine/classes/WorldRoot#Spherecast

Download

1 formats

Video Formats

360pmp482.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Raycasting (Guns, Visualizers, Shapecasts) - Roblox Advanced Scripting #37 (2025) | NatokHD