Hi guys, when I reset the joint C0 and set it to the starterC0 it doesn’t works.
As shown here;
Here is code;
local StartRightC0,StartLeftC0,StartNE = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
local StartC0RootHip = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0);
function Base:ResetJoints()
print('Cleaning joints!')
local leftShoulder = Player.Character.Torso:FindFirstChild('Left Shoulder')
local rightShoulder = Player.Character.Torso:FindFirstChild('Right Shoulder')
if (leftShoulder and rightShoulder) then
leftShoulder.C0 = StartLeftC0
rightShoulder.C0 = StartRightC0
end
if (Player.Character.Torso:FindFirstChild('RootJoint')) then
Player.Character.HumanoidRootPart['RootJoint'].C0 = StartC0RootHip
end
if (Player.Character.Torso:FindFirstChild('Neck')) then
Player.Character.Torso:WaitForChild("Neck").C0 = StartNE
end
end
It’s printing indeed everything, but it doesn’t works!
Before running :ResetJoints() the loop that updates the arms gets disconnected.