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
4 years ago
Edited 4 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

local Plr = game:GetService("Players").LocalPlayer
local Mouse = Plr:GetMouse()
local Head = script.Parent.Head
local Neck = Head.Neck

local Offset = Neck.C1.Position

while true do
    wait()
    local CF = CFrame.new(Neck.C1.Position, Mouse.Hit.Position) - Neck.C1.Position + Offset
    Neck.C1 = CF
end

This is what happens when i play

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

Answer this question