Hey, im trying to make a ragdoll System for my game and im strugling because of these Cframes for the limbs to collide:
local offsets = {
Head = {
Joint = "Neck",
CFrame = {
CFrame.new(0, 1, 0, 0, 1, 0, 0, 0, 1),
CFrame.new(0, -0.5, 0, 0, -1, 0, 0, 0, 1)
}
},
HumanoidRootPart = {
Joint = "HumanoidRootPart",
CFrame = {
CFrame.new(0, 0, 0, 0, 0, 1, 0, 0, 0),
CFrame.new(0, 0, 0, 0, 0, 1, 0, 0, 0)
}
},
["Right Arm"] = {
Joint = "Default",
CFrame = {
CFrame.new(1.3, 0.75, 0, 1, 0, 0, 0, 1, 0),
CFrame.new(0.2, 0, 0.75, 0, -1, 0, 0, 0, 1)
}
},
["Left Arm"] = {
Joint = "Default",
CFrame = {
CFrame.new(-1.3, 0.75, 0, -1, 0, 0, 0, 1, 0),
CFrame.new(-0.2, 0, 0.75, 0, -1, 0, 0, 0, 1)
}
},
["Right Leg"] = {
Joint = "Default",
CFrame = {
CFrame.new(0.5, -1, 0, 1, 0, 0, 0, -1, 0),
CFrame.new(0, 1, 0, 1, 0, 0, 0, -1, 0)
}
},
["Left Leg"] = {
Joint = "Default",
CFrame = {
CFrame.new(-0.5, -1, 0, -1, 0, 0, 0, 1, 0),
CFrame.new(0, 1, 0, 1, 0, 0, 0, -1, 0)
}
}
}
return offsets
Invalid number of arguments: 9 - Server - RagdollData:5
how can i fix this while keeping the values ?