Hi, programmers!
So basically I'm trying to do a local script that rotates the hands and head to the mouse, but I got stuck here ...
https://ctrlv.tv/eIY7 <= My problem
My scripts:
local player = game.Players.LocalPlayer --local script in starterGui
local mouse = player:GetMouse()
game:GetService("RunService").RenderStepped:Connect(function()
mouse.TargetFilter = workspace
player.Character.Torso.Neck.C1 = CFrame.new()
player.Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((mouse.Hit.p - mouse.Origin.p).unit.y), 0, 0)
player.Character.Torso:WaitForChild("Left Shoulder").C1 = CFrame.new()
player.Character.Torso:WaitForChild("Left Shoulder").C0 = CFrame.new(1.5, 0, 0) * CFrame.Angles(math.asin((mouse.Hit.p - mouse.Origin.p).unit.y), 0, 0)
player.Character.Torso:WaitForChild("Right Shoulder").C1 = CFrame.new()
player.Character.Torso:WaitForChild("Right Shoulder").C0 = CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.asin((mouse.Hit.p - mouse.Origin.p).unit.y), 0, 0)
end)
thank you in advance for your help ;)

1 comment
And what is the problem. Instead of posting IP grabber links why not include it in the question itself