How To Rotate&Move A Model To A Part's Orientation&Position?

  1. What do you want to achieve?
    Im Recently Working On A Shield Script That Makes You Wear It But I Cant Use Accessory Or Something Else, So I Have To Make It Move & Rotate.

  2. What is the issue? Include screenshots / videos if possible!
    I Already Made It Move And Stick To Your Arm But I Cant Rotate It To Same Value As Left Lower Arm…
    As Well As The Move Thing Seems Little Bit Broken, It Moves But To A Wrong Position…

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I OF COURSE Tried Few Little Ways… SetPrimaryCFrame… Vectors… Angle… MoveTo… Am I Doing Something Wrong Here? Because After Many Tries My Brain Stopped Working Sadly.

note: all i want is to rotate the entire model to same value as left lower arm orientation value

script.Parent.Equipped:Connect(function()
	if script.Parent.Parent.Armor:FindFirstChild("Shield") then
		script.Disabled = true
	else
		local Shield = script.Parent.Shield:Clone()
		Shield.Parent = script.Parent.Parent:FindFirstChild("Armor")
		Shield.Settle.WeldConstraint.Part1 = script.Parent.Parent.LeftLowerArm
		-----
		Shield:SetPrimaryPartCFrame(CFrame.new(Vector3.new(script.Parent.Parent.LeftLowerArm.Position)))
		Shield:SetPrimaryPartCFrame(CFrame.new(Vector3.new(script.Parent.Parent.LeftLowerArm.Orientation)))
	end
end)

A tool will automatically create a weld to the first part it can find named “Handle”.

Torch (Tool)
  Handle <- Hand is welded to this
1 Like

im not having any problems about weld or sticking, i need to reposition & rotate it

Manipulate the Grip weld inside your RightHand (or left i forgot) using the C0 inside the weld.

Grip.C0 * CFrame.new(0,0,2) --> this would push the handle 2 units in the relative Z axis
Grip.C0 * CFrame.fromOrientation(0,math.rad(90),0) --> this would rotate the handle 90* on the Y axis
1 Like

doesnt really seems working, it calculates wrongly and it clones the shield itself not handle tho
after cloning, handle is no longer being used.

i finally found out an another solution, i used accessory as a position finder and rotater since it does that, then cloned the shield inside accessory and parented it into the area and deleted accessory so i made it with this way, however the weld thing was good but somehow roblox was calculating the position and orientation wrong… probably because it gives answer lately? no idea, still thanks for your advice.