How i can limite an angle?

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
AngleCorrect
Thank you very much for reading, I hope to find a solution.

2 Likes
local CF = HumanoidRootPart.CFrame * CFrame.Angles(0,(math.pi/2)+math.rad(Range * i),0)

try this

2 Likes

It works quite well, thank you very much!

How did you go about getting this?

I believe he changed the angle of the katana’s “energy blades” this might be wrong but im assuming is what he did.

1 Like

Is there a website or something that can help you with angles of projectiles?

1 Like

It worked perfectly, the end result was this!

1 Like