I want to make a trowel that welds to the r6 player’s hand, but I can’t find out how to rotate the welded part, ive tried searching through past forums and trying “Cframe.Angles” but i couldnt find a solution with any of them.
Here is my code:
local handle = script.Parent
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
if handle.Parent:FindFirstChild("Humanoid") == nil then
local plrhandle = handle:Clone()
plrhandle.Parent = char
plrhandle.Anchored = false
local rightarm = char:WaitForChild("Right Arm")
local weld = Instance.new("Motor6D")
weld.Name = "Touch Interest"
weld.Parent = plrhandle
weld.Part0 = plrhandle
weld.Part1 = rightarm
weld.C0 = plrhandle.CFrame
weld.C1 = rightarm.CFrame * CFrame.new(0, -1.5, 0)
end
end)
end)
(the trowel is not a tool)