- What do you want to achieve?
Hello! So basically, I created a simple raycasting script, and I want to make an explosion wherever the end part of the ray is.
- What is the issue?
I cannot figure out how to create the explosion at the end of the ray.
- What solutions have you tried so far?
I have tried this line of code that I found on the forum;
local Pos = (aBeam.CFrame * CFrame.new(0,aBeam.CFrame.Y,0))
However, it doesn’t work, as when placing the explosion part at this position, it places it in the middle of the beam.
Also, please be nice