Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Problems with Motor6D and CFrame. Please Help?

Asked by
tomekcz 174
6 years ago

i wanted to make dummy looks at player's mouse

mouse = game.Players.LocalPlayer:GetMouse() -- script i've put in StarterGui
 Motor = workspace.Dummy.Torso["Right Shoulder"]
mouse.Move:Connect(function()
    Motor.C0 = CFrame.new(Motor.C0.Position, mouse.Hit.p)
end)

of course there is a dummy in workspace

Answer this question