How to make a by mouse pointer projectile beam

HI! I’m new to roblox coding and still have a hard time learning it since roblox coding has more things than usual normal python coding. I just wanted to ask on how do I make a by mouse pointer skill in studio? like the IXA “R” move in ro ghoul

The vfx is a kinda like a beam going down from the sky but the beam is switched with a huge spear and has a summoning kind of thing as well

I wanted to make it aimable with the mouse and only where the mouse hits

ALL HELP IS APPRECIATED! THANK YOU IN ADVANCE!

1 Like

You should probably use raycasting for that. Fire a raycast where the mouse hits and then you can get the position of where it hits and then fire the projectile. (I’m not into VFX so i dont know how to do that, but you should start with raycasting.) Raycasting | Roblox Creator Documentation
Also, hope you know how CFrames and Vector3’s work since you’re going to need to use those to get the result you want.

1 Like

YOW THANKS FOR THAT sry for the late reply I appreciated the help :smiley:

2 Likes