CFrame and CFrame.Angles problem [SOLVED]

  1. What do you want to achieve?
    I wanted to create an inventory that provide a blade in the player’s backpack and a blade in the player’s character back.

  2. What is the issue?
    I already coded the inventory, and I have made two blades already, however the two blades’ position isn’t functioning right.

The diamond blade.

image

The basic blade.

image

Although. they have the same code.

	if character.UpperTorso:FindFirstChildOfClass("UnionOperation") then
		character.UpperTorso:FindFirstChildOfClass("UnionOperation"):Destroy() 
		
		local bladevalue = item:FindFirstChild("BladeValue")
			
		local bladecloned = replicatedstorage.ModelWeapon:FindFirstChild(bladevalue.Value.Name):Clone()
		bladecloned.Parent = character.UpperTorso

		local weld = Instance.new("Weld")
		weld.Name = "Attachment"
		weld.Part0 = bladecloned
		weld.Part1 = character.UpperTorso
		weld.C0 = CFrame.Angles(0,math.rad(90),0) * CFrame.new(0,0,-0.6)
		weld.C1 = CFrame.new(0,0,0)
		weld.Parent = bladecloned
			
		print(bladecloned)
	else
		local bladevalue = item:FindFirstChild("BladeValue")

		local bladecloned = replicatedstorage.ModelWeapon:FindFirstChild(bladevalue.Value.Name):Clone()
		bladecloned.Parent = character.UpperTorso

		local weld = Instance.new("Weld")
		weld.Name = "Attachment"
		weld.Part0 = bladecloned
		weld.Part1 = character.UpperTorso
		weld.C0 = CFrame.Angles(0,math.rad(90),0) * CFrame.new(0,0,-0.6)
		weld.C1 = CFrame.new(0,0,0)
		weld.Parent = bladecloned
	end
  1. What solutions have you tried so far?
    I tried looking for solutions in the devforum and also devhub. I didn’t find any solution regarding my problem.

Check the Origin Orientation of the Diamond Blade model. It should match with the Basic Blade model.

I made the origin orientation of the diamond blade model into the basic blade model’s origin orientation, however, it’s still provides the same issue.

The basic blade’s model origin position.
image

The basic blade’s model origin position.
image

Nevermind, I already have solved it.
I just had to duplicate the basic blade and made it look like the diamond blade model.