I'm not very good at CFrame but I'm trying to get it so a HingeConstraint will point to the mouse.
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Mouse = Player:GetMouse()
local Part = workspace:WaitForChild("Part")
local Controller = workspace:WaitForChild("Controller")
local Base = workspace:WaitForChild("Base")
while wait() do
local NewCFrame = CFrame.new(Base.CFrame.p, Mouse.Hit.p):toAxisAngle().Y
Controller.Horizontal.TargetAngle = NewCFrame * 20
end

2 comments
Please tell us what your problem, how you tried to fix it and any errors you get or we can't help
There are no errors. I have tried using the wiki on CFrame for this but it doesn't help too much.