How to launch projectiles using raycast?

Hello!

I am using raycasts for shooting projectiles in a weapon, though i have already made the raycast i don’t know how to shoot the projectile in the direction of the ray.

I also want to make it with normal scripting, no using of stuff like FastCast or anything like that.

local ray = workspace:Raycast(top.Position, hit.Position - top.Position, params)

(Params is just the blacklist)

Can someone help me please?

Hello, from what I know there’s two types of handling guns:

  1. Projectile guns: Projectiles with a velocity, damage characters that they hit
  2. Raycast guns: Just checking if there theoretically is a target that would be hit, less resource intensive

And I am not sure what you are trying to do because you are raycasting, but also trying to launch a projectile?

Yes. Both would work actually, i am making a spell wand for a magic game, what i need is to just handle the spell launching and hitting. I was thinking of using raycasts but i do need some kind of projectile or particle to be launched.