Help on understanding CFrame.Angles() for a slash effect

Hi DevForum,

I’m making a slash effect, that I want to rotate counterclockwise, but instead rotates like this:

Here is my code:

mesh.CFrame = HRP.CFrame * CFrame.new(0,0,-3) * CFrame.Angles(0, 0, math.rad(180))
	
TweenService:Create(mesh, TweenInfo.new(0.5), {CFrame = mesh.CFrame * CFrame.Angles(0, 0, math.rad(180)), Transparency = 1}):Play()

Help is appreciated, thanks.

1 Like

Try using the Y axis in Angles instead of the Z.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.