Ok, so I don’t know the first thing about rigging, so I was trying to learn for an upcoming project I am working on as a custom player. And all of these assets are imported from blender. So, I asked ChatGPT as an easy way out as to create a rigg. It did in fact work as of animations, but I put it into the StarterPlayer
Service to see if I could walk around with it. That did not work.
ChatGPT Command Bar Code
local function createMotor6D(part0, part1, name)
local motor6D = Instance.new("Motor6D")
motor6D.Part0 = part0
motor6D.Part1 = part1
motor6D.Name = name
motor6D.C0 = part0.CFrame:inverse() * part1.CFrame
motor6D.C1 = CFrame.new()
motor6D.Parent = part0
end
local model = workspace:FindFirstChild("Test")
local function rigModel()
local head = model:FindFirstChild("Head")
local torso = model:FindFirstChild("Torso")
local humanoidRootPart = model:FindFirstChild("HumanoidRootPart")
local rightShoulder = model:FindFirstChild("RightShoulder")
local upperRightArm = model:FindFirstChild("RightUpperArm")
local lowerRightArm = model:FindFirstChild("RightLowerArm")
local leftShoulder = model:FindFirstChild("LeftShoulder")
local upperLeftArm = model:FindFirstChild("LeftUpperArm")
local lowerLeftArm = model:FindFirstChild("LeftLowerArm")
local rightUpperLeg = model:FindFirstChild("RightUpperLeg")
local rightLowerLeg = model:FindFirstChild("RightLowerLeg")
local leftUpperLeg = model:FindFirstChild("LeftUpperLeg")
local leftLowerLeg = model:FindFirstChild("LeftLowerLeg")
if head and torso and humanoidRootPart and rightShoulder and upperRightArm and lowerRightArm and leftShoulder and upperLeftArm and lowerLeftArm and rightUpperLeg and rightLowerLeg and leftUpperLeg and leftLowerLeg then
createMotor6D(humanoidRootPart, torso, "RootJoint")
createMotor6D(torso, head, "Neck")
createMotor6D(torso, rightShoulder, "RightShoulderJoint")
createMotor6D(rightShoulder, upperRightArm, "RightUpperArmJoint")
createMotor6D(upperRightArm, lowerRightArm, "RightLowerArmJoint")
createMotor6D(torso, leftShoulder, "LeftShoulderJoint")
createMotor6D(leftShoulder, upperLeftArm, "LeftUpperArmJoint")
createMotor6D(upperLeftArm, lowerLeftArm, "LeftLowerArmJoint")
createMotor6D(torso, rightUpperLeg, "RightHipJoint")
createMotor6D(rightUpperLeg, rightLowerLeg, "RightKneeJoint")
createMotor6D(torso, leftUpperLeg, "LeftHipJoint")
createMotor6D(leftUpperLeg, leftLowerLeg, "LeftKneeJoint")
print("Model rigged successfully.")
else
warn("Model is missing required parts.")
end
end
if model then
rigModel()
else
warn("Model not found in workspace.")
end
Rig SetUp (Image)
I hope this helps! If you have any more questions on what else this involves, I do not know. But thanks for the help if you can! Also whenever I play the game there is an error message: Infinite yield possible on 'Workspace.Stephenesta_aqui.Torso:WaitForChild("Right Shoulder")'