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

Help with HumanoidRootPart CFrames?

Asked by 9 years ago
local char = script.Parent

local LS = char:WaitForChild('Torso'):FindFirstChild('Left Shoulder')
if LS then
    LS.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
    LS.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 1, 1.19248806e-008, 0, 1.19248806e-008, -1, 0)
end

local RS = char:WaitForChild('Torso'):FindFirstChild('Right Shoulder')
if RS then
    RS.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
    RS.C1 = CFrame.new(-0.5, 0.49999997, 0, 0, 0, 0.99999994, -1, -4.37113883e-008, 0, 4.37113883e-008, -1, 0)
end

local LH = char:WaitForChild('Torso'):FindFirstChild('Left Hip')
if LH then
    LH.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
    LH.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 1, 1.19248806e-008, 0, 1.19248806e-008, -1, 0)
end

local RH = char:WaitForChild('Torso'):FindFirstChild('Right Hip')
if RH then
    RH.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
    RH.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, -1, 1.19248806e-008, 0, -1.19248806e-008, -1, 0)
end

local NK = char:WaitForChild('Torso'):FindFirstChild('Neck')
if NK then
    NK.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
    NK.C1 = CFrame.new(0, -0.49999997, 0, -0.99999994, 0, 0, 0, 1, -4.37113883e-008, -0, -4.37113883e-008, -1)
end

local RJ = char:WaitForChild('HumanoidRootPart'):FindFirstChild('RootJoint')
if RJ then
    RJ.C0 = CFrame.new() -- Need Value
    RJ.C1 = CFrame.new() -- Need Value
end

I used animation editor to get most CFrames, but I need a CFrame that will make the humanoid look like it's crawling with the given arm/leg CFrames. Any help?

1
And who would like to read all that? EzraNehemiah_TF2 3552 — 9y
0
Question is - can you help me or not? HECKFURNIOUS 85 — 9y

Answer this question