Making it look at mouse position isn't a problem, what I can't figure out is to make it rotate on only 1 axis, up and down.
local Plr = game.Players.LocalPlayer
local mouse = Plr:GetMouse()
local Char = Plr.Character
local torso = Char.Torso
local sh = torso["Right Shoulder"]
game:service("RunService").RenderStepped:connect(function()
local cf = CFrame.new((torso.CFrame * CFrame.new(1,0.5,0)).p, mouse.Hit.p)
sh.C0 = torso.CFrame:toObjectSpace(cf) * CFrame.Angles(0,math.pi/2,math.pi/2)
end)
Pls
|