Hi, I’m making a katana that throws energy blades in certain directions, but it works fine except for one thing, what happens here is that I don’t know how to limit the angle.
Note: Im using LookVector, here is the script
local Range = 25
for i = 1,6 do
local CF = HumanoidRootPart.CFrame * CFrame.Angles(0,math.rad(Range * i),0) -- here is the problem
SpecialFunctions.CustomSlash(Char,CF,Ignore,Color,Damage,Size,Velocity) --Create a slash
end
Here is a visual example of what is happening and what I do not want to happen and sorry for the bad quality video
I want this
Thank you very much for reading, I hope to find a solution.