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

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

of course there is a dummy in workspace

Answer this question