I made a script where a part welds (motor6d) to the player's hand when you click a brick. I was wondering how am I able to rotate the part so that is welded to a certain angle
local function OnClick(player)
print(player.Name)
local char = game.Workspace:FindFirstChild(player.Name)
local handle = game.ServerStorage.Handle:Clone()
handle.Parent = workspace
local Motor6D = Instance.new("Motor6D",char.RightHand)
Motor6D.Name = "HandleMotor6D"
Motor6D.Part0 = char.RightHand
Motor6D.Part1 = handle
end
script.Parent.ClickDetector.MouseClick:connect(OnClick)
