Wrong Cframe Angles

So I want to make book tool which open and closing. But problem with Cframe.Angles. when I activated first time script set -90 in grip. And when i activated second time script put 90* to z axis. When I need in X axis. What am I do wrong?

local tool = script.Parent
local activated = false

tool.Activated:Connect(function()
	if(not(activated))then
		tool.Handle.Mesh.MeshId = "rbxassetid://18518129841"
		tool.Grip = CFrame.new(0,0,1.3) * CFrame.Angles(0,math.rad(-90),0)
		activated = true
	else
		tool.Handle.Mesh.MeshId = "rbxassetid://18518188093"
		tool.Grip = CFrame.new(0,0,0) * CFrame.Angles(math.rad(90),math.rad(90),0)
		activated = false
	end
end)

Here is video_explanation

Try using CFrame.fromOrientation

1 Like

Why you dont do a normal handle part, and then weld this part with the 2 meshes, with this, u just need to use transparency in the script

or just do what @dthecoolest said

Other useful tip but im better do what @dthecoolest say.