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

Head Movement with Motor6D (?)

Asked by
SurfedZ 36
5 years ago
Edited 5 years ago

So, i recently was testing out Motor6D's, but i had a lot of problems with it, i'm trying to make a head movement, but i don't know what's wrong with it

This is a LocalScript on StarterCharacterScripts

01local Plr = game:GetService("Players").LocalPlayer
02local Mouse = Plr:GetMouse()
03local Head = script.Parent.Head
04local Neck = Head.Neck
05 
06local Offset = Neck.C1.Position
07 
08while true do
09    wait()
10    local CF = CFrame.new(Neck.C1.Position, Mouse.Hit.Position) - Neck.C1.Position + Offset
11    Neck.C1 = CF
12end

This is what happens when i play

https://i.gyazo.com/218725cd98d04cf8eb9922c2c6230639

Answer this question